Advisory

PYSEC-2026-2277

Also known as: CVE-2026-32727, GHSA-3x2w-63fp-3qvw

Summary

The record has no summary.

Details

SciTokens is a reference library for generating and using SciTokens. Prior to version 1.9.7, the Enforcer is vulnerable to a path traversal attack where an attacker can use dot-dot (..) in the scope claim of a token to escape the intended directory restriction. This occurs because the library normalizes both the authorized path (from the token) and the requested path (from the application) before comparing them using startswith. This issue has been patched in version 1.9.7.

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2026-03-31 03:15 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

scitokens

PyPI · All systems

Affected

  • introduced 0, fixed 1.9.7 (ecosystem)

Fixed versions

1.9.7

Fix

  • Fixed version 1.9.7
    pip install --upgrade scitokens==1.9.7

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences