PYSEC-2026-4298

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/python-jose/PYSEC-2026-4298.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-4298
Aliases
Published
2026-10-15T10:22:43Z
Modified
2026-10-15T14:56:01Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
  • 9.3 (Critical) CVSS_V4 - 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 Calculator
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.

References

Affected packages

PyPI / python-jose

Package

Name
python-jose
View open source insights on deps.dev
Purl
pkg:pypi/python-jose

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
3.5.0

Affected versions

0.*
0.1.0
0.1.1
0.1.2
0.1.3
0.1.4
0.1.5
0.1.6
0.1.7
0.1.8
0.2.0
0.3.0
0.4.0
0.5.0
0.5.1
0.5.2
0.5.3
0.5.4
0.5.5
0.5.6
0.6.1
0.6.2
0.7.0
1.*
1.0.0
1.1.0
1.2.0
1.3.0
1.3.1
1.3.2
1.4.0
2.*
2.0.0
2.0.1
2.0.2
3.*
3.0.0
3.0.1
3.1.0
3.2.0
3.3.0
3.4.0
3.5.0

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/python-jose/PYSEC-2026-4298.yaml"