PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-27962 authlib CVE debrief

CVE-2026-27962 is a critical vulnerability in the Authlib library, which is used for building OAuth and OpenID Connect servers. The vulnerability, known as JWK Header Injection, allows an unauthenticated attacker to forge arbitrary JWT tokens that pass signature verification. This is achieved by passing key=None to any JWS deserialization function, which then 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, effectively bypassing authentication and authorization entirely. The vulnerability has been patched in version 1.6.9 of Authlib. This issue is considered critical, with a CVSS score of 9.1.

Vendor
authlib
Product
Unknown
CVSS
CRITICAL 9.1
CISA KEV
Not listed in stored evidence
Original CVE published
2026-03-16
Original CVE updated
2026-09-10
Advisory published
2026-03-16
Advisory updated
2026-09-10

Who should care

Organizations using Authlib for OAuth and OpenID Connect server implementation should be aware of this vulnerability and take immediate action to patch their systems. Specifically, any system that relies on Authlib for authentication and authorization is potentially vulnerable. This includes applications that use Authlib to secure APIs or user login processes. Given the critical nature of this vulnerability, defenders should prioritize patching to prevent potential exploitation.

Technical summary

The CVE-2026-27962 vulnerability in Authlib arises from a flaw in its JWS (JSON Web Signature) implementation. Specifically, when the key parameter is set to None during JWS deserialization, the library incorrectly uses the JWK (JSON Web Key) embedded in the JWT (JSON Web Token) header for signature verification. This allows an attacker to forge a JWT by signing it with their own private key, including the corresponding public key in the JWK header, and then have the server validate it as if signed by a trusted key. This bypasses authentication and authorization mechanisms, potentially allowing unauthorized access to protected resources. The vulnerability is exacerbated by its simplicity of exploitation and the high impact of a successful attack.

Defensive priority

This vulnerability should be treated with the highest priority for remediation due to its critical CVSS score of 9.1 and the potential for significant impact on authentication and authorization mechanisms. Defenders should immediately apply patches or mitigations provided by the vendor.

Recommended defensive actions

  • Apply the patch: Upgrade Authlib to version 1.6.9 or later to fix the vulnerability.
  • Review and update affected systems: Identify all systems and applications that use Authlib and ensure they are updated to the patched version.
  • Monitor for suspicious activity: Increase monitoring for unusual authentication or authorization attempts that could indicate exploitation attempts.
  • Implement compensating controls: Consider implementing additional security controls, such as token blacklisting or enhanced authentication mechanisms, until patching can be completed.
  • Verify patch deployment: Confirm that the patch has been successfully applied and that systems are no longer vulnerable.

Evidence notes

The evidence for this CVE comes from the NVD and the Authlib security advisory. The vulnerability was made public on March 16, 2026, and has since been patched in Authlib version 1.6.9. Multiple references, including GitHub advisories and Red Hat errata, provide additional context and mitigation strategies.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-27962 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-27962

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-27962 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-27962

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Mitigation or vendor reference

    Unverified legacy reference

    URL: https://github.com/authlib/authlib/commit/a5d4b2d4c9e46bfa11c82f85fdc2bcc0b50ae681

    [email protected] - Patch

  • Mitigation or vendor reference

    Unverified legacy reference

    URL: https://github.com/authlib/authlib/releases/tag/v1.6.9

    [email protected] - Product, Release Notes

  • Mitigation or vendor reference

    Unverified legacy reference

    URL: https://github.com/authlib/authlib/security/advisories/GHSA-wvwj-cvrp-7pv5

    [email protected] - Exploit, Mitigation, Vendor Advisory

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/errata/RHSA-2026:19375

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/errata/RHSA-2026:24853

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/errata/RHSA-2026:5665

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/errata/RHSA-2026:7314

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.