PyPA Advisory Database
PYSEC-2026-2276
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | scitokens | All versions before 1.9.6 (fixed in 1.9.6) |