Vulnerability PYSEC-2026-4298

Critical
CRITICAL RISK
CVSS Score: 9.1
Score Range: 9.0–10.0
Critical severity vulnerabilities (CVSS 9.0–10.0). These represent the highest impact issues.
7 hours ago
October 15, 2026 at 10:22 AM UTC
python-jose algorithm confusion guard bypassed by DER-encoded public keys
0.1.0 - 3.5.0
0.1.0 - 3.5.0

Summary

python-jose algorithm confusion guard bypassed by DER-encoded public keys

Details

python-jose through 3.5.0 fails to properly validate asymmetric keys in HMAC initialization, accepting DER-encoded public keys that lack PEM armor or SSH prefixes. Attackers holding the service's public key can forge HS256 tokens that pass verification when algorithms are not explicitly restricted. This is an incomplete fix for CVE-2024-33663.

Impacted packages

Timeline

Published
7 hours ago
October 15, 2026 at 10:22 AM UTC
Last Modified
2 hours ago
October 15, 2026 at 02:45 PM UTC