{"id":"CVE-2026-27962","published":"2026-03-16T17:34:38Z","modified":"2026-09-10T12:04:56Z","title":"Authlib JWS JWK Header Injection: Signature Verification Bypass","vendor":"authlib","product":"authlib","tier":"tail","description":{"text":"Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.9, a JWK Header Injection vulnerability in authlib's JWS implementation allows an unauthenticated attacker to forge arbitrary JWT tokens that pass signature verification. When key=None is passed to any JWS deserialization function, the library extracts and uses the cryptographic key embedded in the attacker-controlled JWT jwk header field. An attacker can sign a token with their own private key, embed the matching public key in the header, and have the server accept the forged token as cryptographically valid — bypassing authentication and authorization entirely. This issue has been patched in version 1.6.9.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00601,"percentile":0.42811,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/authlib/authlib/security/advisories/GHSA-wvwj-cvrp-7pv5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/authlib/authlib/commit/a5d4b2d4c9e46bfa11c82f85fdc2bcc0b50ae681","tags":["x_refsource_MISC"]},{"url":"https://github.com/authlib/authlib/releases/tag/v1.6.9","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-27962","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2448164","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27962.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:5665","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:7314","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24853","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19375","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:48085","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":8.56},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"authlib","affectedVersions":[{"vendor":"authlib","product":"authlib","versions":["< 1.6.9"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-03-16T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"authlib","vulnerableRanges":["<1.6.9"],"patched":["1.6.9"],"from":["GHSA-wvwj-cvrp-7pv5","PYSEC-2026-287"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-12478","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-authlib-cve-2026-28802","children":[{"from":"CVE-2026-27962","to":"CVE-2026-28490","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["authlib/jose/rfc7515/jws.py","authlib/jose/rfc7516/jwe.py"],"commits":["https://github.com/authlib/authlib/commit/a5d4b2d4c9e46bfa11c82f85fdc2bcc0b50ae681","https://github.com/authlib/authlib/commit/48b345f29f6c459f11c6a40162b6c0b742ef2e22"],"basis":"shared function","functions":["_prepare_algorithm_key"]}]}],"packageHistory":[{"cve":"CVE-2025-62706","published":"2025-10-22","fixed":"1.6.5","kev":false},{"cve":"CVE-2025-68158","published":"2026-01-08","fixed":"1.6.6","kev":false},{"cve":"CVE-2026-28802","published":"2026-03-06","fixed":"1.6.7","kev":false,"link":{"from":"CVE-2026-28802","to":"CVE-2026-27962","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:authlib","fromFixed":"1.6.7","toFixed":"1.6.9","daysApart":10}]}},{"cve":"CVE-2026-27962","published":"2026-03-16","fixed":"1.6.9","kev":false},{"cve":"CVE-2026-28490","published":"2026-03-16","fixed":"1.6.9","kev":false},{"cve":"CVE-2026-28498","published":"2026-03-16","fixed":"1.6.9","kev":false},{"cve":"CVE-2026-41425","published":"2026-04-24","fixed":"1.6.11","kev":false},{"cve":"CVE-2026-41479","published":"2026-06-22","fixed":"1.7.1","kev":false,"link":{"from":"CVE-2026-27962","to":"CVE-2026-41479","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:authlib","fromFixed":"1.6.9","toFixed":"1.6.10","daysApart":98}]}}],"package":"PyPI:authlib"}}