Security Vulnerability Report
中文
CVE-2026-32716 CVSS 8.1 HIGH

CVE-2026-32716

Published: 2026-03-31 03:15:57
Last Modified: 2026-04-03 18:01:06

Description

SciTokens is a reference library for generating and using SciTokens. Prior to version 1.9.6, the Enforcer incorrectly validates scope paths by using a simple prefix match (startswith). This allows a token with access to a specific path (e.g., /john) to also access sibling paths that start with the same prefix (e.g., /johnathan, /johnny), which is an Authorization Bypass. This issue has been patched in version 1.9.6.

CVSS Details

CVSS Score
8.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Configurations (Affected Products)

cpe:2.3:a:scitokens:scitokens_library:*:*:*:*:*:*:*:* - VULNERABLE
SciTokens < 1.9.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# Proof of Concept: Demonstrating the prefix match vulnerability # This script simulates the flawed validation logic in SciTokens < 1.9.6 def vulnerable_check(token_scope, requested_path): # Flawed logic: uses simple startswith if requested_path.startswith(token_scope): return True return False def fixed_check(token_scope, requested_path): # Intended logic: ensure strict path hierarchy or exact match # Usually requires checking for path separator boundaries if requested_path == token_scope: return True if requested_path.startswith(token_scope + '/'): return True return False # Scenario: Attacker has token for '/john' token_scope = "/john" # Attacker tries to access sibling path '/johnny' requested_path = "/johnny/data" print(f"Token Scope: {token_scope}") print(f"Requested Path: {requested_path}") if vulnerable_check(token_scope, requested_path): print("[VULNERABLE] Access Granted! (This is the bug)") else: print("[VULNERABLE] Access Denied.") if fixed_check(token_scope, requested_path): print("[FIXED] Access Granted.") else: print("[FIXED] Access Denied.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-32716", "sourceIdentifier": "[email protected]", "published": "2026-03-31T03:15:57.143", "lastModified": "2026-04-03T18:01:06.267", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "SciTokens is a reference library for generating and using SciTokens. Prior to version 1.9.6, the Enforcer incorrectly validates scope paths by using a simple prefix match (startswith). This allows a token with access to a specific path (e.g., /john) to also access sibling paths that start with the same prefix (e.g., /johnathan, /johnny), which is an Authorization Bypass. This issue has been patched in version 1.9.6."}, {"lang": "es", "value": "SciTokens es una biblioteca de referencia para generar y usar SciTokens. Antes de la versión 1.9.6, el Enforcer valida incorrectamente las rutas de alcance al usar una coincidencia de prefijo simple (startswith). Esto permite que un token con acceso a una ruta específica (por ejemplo, /john) también acceda a rutas hermanas que comienzan con el mismo prefijo (por ejemplo, /johnathan, /johnny), lo que constituye un bypass de autorización. Este problema ha sido parcheado en la versión 1.9.6."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 5.2}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-285"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:scitokens:scitokens_library:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.9.6", "matchCriteriaId": "429A2C44-9B3E-4F01-86BC-818177DD8EF0"}]}]}], "references": [{"url": "https://github.com/scitokens/scitokens/commit/7a237c0f642efb9e8c36ac564b745895cca83583", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/scitokens/scitokens/releases/tag/v1.9.6", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/scitokens/scitokens/security/advisories/GHSA-w8fp-g9rh-34jh", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}]}}