CVE-2026-85394 PUBLISHED

python-jose through 3.5.0 Algorithm Confusion via DER-encoded Public Key as HMAC Secret

Assigner: VulnCheck
Reserved: 03.09.2026 Published: 03.09.2026 Updated: 03.09.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
CVSS Score: 9.3

Product Status

Vendor mpdavis
Product python-jose
Versions Default: unaffected
  • affected from 0 to 3.5.0 (incl.)

Credits

  • George Chen finder

References

Problem Types

  • Improper Verification of Cryptographic Signature CWE