CVE-2026-32714
published 2026-03-31CVE-2026-32714: SciTokens is a reference library for generating and using SciTokens. Prior to version 1.9.6, the KeyCache class in scitokens was vulnerable to SQL Injection…
PriorityP263critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
0.49%
38.6th percentile
SciTokens is a reference library for generating and using SciTokens. Prior to version 1.9.6, the KeyCache class in scitokens was vulnerable to SQL Injection because it used Python's str.format() to construct SQL queries with user-supplied data (such as issuer and key_id). This allowed an attacker to execute arbitrary SQL commands against the local SQLite database. This issue has been patched in version 1.9.6.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| scitokens | scitokens | < 1.9.6 | 1.9.6 |
| scitokens | scitokens | >= 0 < 1.9.6 | 1.9.6 |
| scitokens | scitokens_library | < 1.9.6 | 1.9.6 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
SciTokens is vulnerable to SQL Injection in KeyCache
ghsa·2026-03-31
CVE-2026-32714 [CRITICAL] CWE-89 SciTokens is vulnerable to SQL Injection in KeyCache
SciTokens is vulnerable to SQL Injection in KeyCache
### Summary
The `KeyCache` class in `scitokens` was vulnerable to SQL Injection because it used Python's `str.format()` to construct SQL queries with user-supplied data (such as `issuer` and `key_id`). This allowed an attacker to execute arbitrary SQL commands against the local SQLite database.
Ran the POC below locally.
### Details
**File:** `src/scitokens/utils/keycache.py`
### Vulnerable Code Snippets
**1. In `addkeyinfo` (around line 74):**
```python
curs.execute("DELETE FROM keycache WHERE issuer = '{}' AND key_id = '{}'".format(issuer, key_id))
```
**2. In `_addkeyinfo` (around lines 89 and 94):**
```python
insert_key_statement = "INSERT OR REPLACE INTO keycache VALUES('{issuer}', '{expiration}', '{key_id}', \
'{keydata}', '{
OSV
SciTokens is vulnerable to SQL Injection in KeyCache
osv·2026-03-31
CVE-2026-32714 [CRITICAL] SciTokens is vulnerable to SQL Injection in KeyCache
SciTokens is vulnerable to SQL Injection in KeyCache
### Summary
The `KeyCache` class in `scitokens` was vulnerable to SQL Injection because it used Python's `str.format()` to construct SQL queries with user-supplied data (such as `issuer` and `key_id`). This allowed an attacker to execute arbitrary SQL commands against the local SQLite database.
Ran the POC below locally.
### Details
**File:** `src/scitokens/utils/keycache.py`
### Vulnerable Code Snippets
**1. In `addkeyinfo` (around line 74):**
```python
curs.execute("DELETE FROM keycache WHERE issuer = '{}' AND key_id = '{}'".format(issuer, key_id))
```
**2. In `_addkeyinfo` (around lines 89 and 94):**
```python
insert_key_statement = "INSERT OR REPLACE INTO keycache VALUES('{issuer}', '{expiration}', '{key_id}', \
'{keydata}', '{
No detection rules found.
No public exploits indexed.
https://github.com/scitokens/scitokens/commit/3dba108853f2f4a6c0f2325c03779bf083c41cf2https://github.com/scitokens/scitokens/releases/tag/v1.9.6https://github.com/scitokens/scitokens/security/advisories/GHSA-rh5m-2482-966chttps://github.com/scitokens/scitokens/security/advisories/GHSA-rh5m-2482-966c
2026-03-31
Published