CRITICAL🇵🇱 Wersja polska

CVE-2026-27962

CVSS 9.1v3.1pub. 2026-03-16upd. 2026-08-17

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.

🤖 AI Analysis
How it works

When the value key=None is passed to any JWS deserialization function, the library extracts the cryptographic key directly from the attacker-controlled 'jwk' header field of the JWT. The attacker signs the token with their own private key and embeds the matching public key in the token header. The server accepts such a crafted token as cryptographically valid, even though the key comes from the attacker rather than a trusted source. This way it is possible to forge the identity of any user or obtain unauthorized privileges.

Impact

An attacker can completely bypass authentication and authorization by impersonating any user or gaining unauthorized access to protected application resources.

Mitigation & patch

Update Authlib to version 1.6.9 or newer. Patch available in the official GitHub project repository (tag v1.6.9).

Who is affected

Authlib (Python library) in versions earlier than 1.6.9

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Authlib

    APP
    Authlib
    < 1.6.9
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
Auth BypassDeserialization
CWE
References

Related vulnerabilities

CVE-2026-28498HIGH8.2same product

Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.9, a library-l...

CVE-2026-28490HIGH8.3same product

Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.9, a cryptogra...

CVE-2026-28802HIGH7.7same product

Authlib is a Python library which builds OAuth and OpenID Connect servers. From version 1.6.5 to before versio...

CVE-2025-61920HIGH7.5same product

Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.5, Authlib’s J...

CVE-2025-59420HIGH7.5same product

Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.4, Authlib’s J...