{"id":"CVE-2026-49852","published":"2026-07-17T19:14:58Z","modified":"2026-07-20T14:58:41Z","title":"joserfc: HS256/HS384/HS512 verify accepts empty/nil HMAC key (cross-language sibling of CVE-2026-45363)","vendor":"authlib","product":"joserfc","tier":"tail","description":{"text":"joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. Prior to 1.6.8, joserfc.jwt.decode accepts attacker-forged HMAC-signed tokens when the caller-supplied verification key is the empty string or None, because HMACAlgorithm.sign and HMACAlgorithm.verify in src/joserfc/_rfc7518/jws_algs.py pass the output of OctKey.get_op_key(...) to hmac.new(...) and OctKey.import_key in src/joserfc/_rfc7518/oct_key.py only emits a SecurityWarning for keys shorter than 14 bytes without rejecting zero-length input. This issue is fixed in version 1.6.8.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00171,"percentile":0.06676,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"},{"id":"CWE-326","name":"Inadequate Encryption Strength"},{"id":"CWE-1391","name":"Use of Weak Credentials"}],"references":[{"url":"https://github.com/authlib/joserfc/security/advisories/GHSA-gg9x-qcx2-xmrh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/authlib/joserfc/commit/86d00910b2b2d2d07503fee9b572906daefab7f1","tags":["x_refsource_MISC"]},{"url":"https://github.com/authlib/joserfc/releases/tag/1.6.8","tags":["x_refsource_MISC"]}],"priority":{"score":7.4,"factors":[{"name":"EPSS percentile","points":1.34},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"authlib","affectedVersions":[{"vendor":"authlib","product":"joserfc","versions":["< 1.6.8"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-20T14:58:30.595996Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"joserfc","vulnerableRanges":["<1.6.8"],"patched":["1.6.8"],"from":["GHSA-gg9x-qcx2-xmrh","PYSEC-2026-2528"],"provenance":"source"}],"summary":{"text":"The joserfc Python library, which implements JOSE standards, has a flaw in its HS256, HS384 and HS512 HMAC verification, where jwt.decode accepts tokens signed with an empty or None key before version 1.6.8. An attacker with network access and no authentication or user interaction can forge HMAC-signed tokens that the library accepts as valid, provided the verifying application supplies an empty string or None as its key.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:34Z"},"euvd":{"id":"EUVD-2026-45281","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-65015","published":"2025-11-18","fixed":"1.4.2","kev":false},{"cve":"CVE-2026-27932","published":"2026-03-03","fixed":"1.6.3","kev":false},{"cve":"CVE-2026-48990","published":"2026-06-17","fixed":"1.6.7","kev":false,"link":{"from":"CVE-2026-48990","to":"CVE-2026-49852","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:joserfc","fromFixed":"1.6.7","toFixed":"1.6.8","daysApart":30}]}},{"cve":"CVE-2026-49852","published":"2026-07-17","fixed":"1.6.8","kev":false},{"cve":"CVE-2026-119283","published":"2026-10-29","fixed":"1.7.5","kev":false,"link":{"from":"CVE-2026-49852","to":"CVE-2026-119283","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:joserfc","fromFixed":"1.6.8","toFixed":"1.7.5","daysApart":104}]}},{"cve":"CVE-2026-119284","published":"2026-10-29","fixed":"1.7.6","kev":false}],"package":"PyPI:joserfc"}}