CVE-2026-27962: Vulnerability in Authlib

Critical. 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...

PyPI, CWE-347

Exploitation
None confirmed
Severity
9.1 of 10
Attack likelihood
0.6 % in 30 days
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-wvwj-cvrp-7pv5
EU ID
EUVD-2026-12478
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-347
Published
16 Mar 2026
Last change
27 Oct 2026
Likelihood rank
Higher than 43 % of all rated vulnerabilities
Analysis status
Modified
Ecosystem
PyPI

Affected products

Affected versions and the first fixed release

  • Authlib Before 1.6.9. Fixed in 1.6.9

Affected packages

Vulnerable version ranges and fixed releases

  • authlib PyPI, Affected through 1.6.8. Fixed in 1.6.9

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Exploit code

Public exploits and proofs of concept, handle with care

Related