VDB
Sign up
MEDIUM6.5

PYSEC-2026-2276

Quick fix

PYSEC-2026-2276 — scitokens: upgrade to the fixed version with the command below.

pip install --upgrade 'scitokens>=1.9.6'

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/scitokens
Introduced in: 0Fixed in: 1.9.6
Fixpip install --upgrade 'scitokens>=1.9.6'

References