CVE-2026-85394: python-jose through 3.5.0 Algorithm Confusion via DER-encoded Public Key as HMAC Secret

Published Sep 3, 2026
·
Updated

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.

Affected Software

1 affected component
pypi/python-jose<=3.5.0

Event History

Sep 3, 2026
CVE Published
via MITRE·06:54 PM
Data Sourced
via MITRE·06:54 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to token forgery?

Deployments using python-jose through 3.5.0 are exposed when token verification does not explicitly restrict accepted algorithms. An attacker who has the service's public key can forge HS256 tokens that pass verification.

2

Does exploitation require credentials or user interaction?

No. The supplied severity vector specifies network access, low attack complexity, no privileges required, and no user interaction.

3

What configuration change can reduce exposure before an update is available?

Explicitly restrict the algorithms accepted during token verification. The described forgery succeeds when algorithms are not explicitly restricted.

4

What key format is relevant to this issue?

The affected HMAC initialization accepts DER-encoded public keys that lack PEM armor or SSH prefixes. This enables a public key to be treated as an HMAC secret.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203