{"id":2330,"cve":"CVE-2026-85394","cve_url":"https:\/\/www.cvedetails.com\/cve\/CVE-2026-85394\/","cwe":"CWE-347","cwe_number":347,"cwe_url":"https:\/\/cwe.mitre.org\/data\/definitions\/347","cvss_score":9.3,"published":"2026-09-03","owasp":"A02 Cryptographic Failures","odc":"Checking","cdc":"Incorrect Check","category":"Cryptographic","subcategory":"Cryptographic Implementation Error","scope":"Remote","impact":"Unauthorized Access","summary":"Improper key validation lets attackers forge HS256 tokens using public DER keys.","permalink":"https:\/\/netpack.pt\/vaitp\/vulnerability\/CVE-2026-85394\/","description":"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.","solution":"Upgrade\u202fpython\u2011jose to version\u202f3.5.1\u202for newer.","affected_component":"python-jose","fixed_by_upgrading":true,"vulnerable_code":"from jose import jwt\n\ndef verify_token(token: str, key: bytes) -> dict:\n    # VULNERABLE: accepts DER\u2011encoded public key as HMAC secret\n    return jwt.decode(token, key)\n","patched_code":"from jose import jwt\n\ndef verify_token(token: str, key: bytes) -> dict:\n    # FIX: restrict algorithms to prevent asymmetric key misuse\n    return jwt.decode(token, key, algorithms=[\"HS256\"])\n","payload_needed":true,"payload":null,"payload_status":"model_refused","published_fix":[],"references":null}