[pkg-vuln] CVE-2026-48525 in pyjwt@2.12.1 #536
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: MEDIUM
Package:
pyjwt@2.12.1Fixed in:
2.13.0PyJWT is a JSON Web Token implementation in Python. From 2.8.0 to 2.12.1, when verifying detached JWS tokens using the unencoded-payload option ("b64": false, RFC 7797), PyJWT performs Base64URL decoding of the compact-serialization payload segment before enforcing the detached-payload rules. For b64=false, PyJWT later discards that decoded payload and replaces it with the caller-provided detached_payload. In practice, this turns the middle segment into an attacker-controlled “work amplifier”: a
Reference: https://nvd.nist.gov/vuln/detail/CVE-2026-48525
Not exploitable here. CVE-2026-48525 involves RFC 7797 (
"b64": false) detached-payload verification, which is never used. The only JWT usage issrc/api/deps.py(jwt.decode(..., secret, algorithms=["HS256"])with a static shared secret) andsrc/api/routes/auth.py(jwt.encode(..., algorithm="HS256")). NoPyJWK,PyJWKClient, JWKS endpoint, or RFC 7797 detached payloads anywhere in the codebase (grep clean).Bumped anyway (defense in depth):
pyjwt2.12.1 → 2.13.0 in65c31cf88f(uv.lock + pkg-manifest; pyproject floor raised for direct deps). Advisory link is in the issue body.