Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-27962

CVE-2026-27962: Authlib Auth Bypass Vulnerability

CVE-2026-27962 is an authentication bypass flaw in Authlib's JWS implementation that allows attackers to forge JWT tokens and bypass authentication. This article covers technical details, affected versions, and mitigation.

Published: March 20, 2026

CVE-2026-27962 Overview

CVE-2026-27962 is a critical JWK Header Injection vulnerability in Authlib, a widely-used Python library for building OAuth and OpenID Connect servers. This authentication bypass vulnerability allows unauthenticated attackers to forge arbitrary JWT tokens that pass signature verification, effectively bypassing authentication and authorization mechanisms entirely.

The vulnerability exists in Authlib's JWS (JSON Web Signature) implementation prior to version 1.6.9. 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. This allows an attacker to 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.

Critical Impact

Unauthenticated attackers can forge arbitrary JWT tokens to bypass authentication and authorization, gaining unauthorized access to protected resources and impersonating any user.

Affected Products

  • Authlib versions prior to 1.6.9
  • Applications using Authlib's JWS deserialization functions with key=None
  • OAuth and OpenID Connect servers built with vulnerable Authlib versions

Discovery Timeline

  • 2026-03-16 - CVE-2026-27962 published to NVD
  • 2026-03-17 - Last updated in NVD database

Technical Details for CVE-2026-27962

Vulnerability Analysis

This vulnerability falls under CWE-347 (Improper Verification of Cryptographic Signature). The core issue lies in how Authlib's JWS implementation handles key resolution during token verification. When no explicit key is provided (i.e., key=None), the library automatically extracts and trusts the jwk (JSON Web Key) embedded in the JWT header itself.

This design flaw fundamentally breaks the security model of JWT signature verification. The cryptographic signature on a JWT is only meaningful when verified against a pre-trusted key. By allowing the key to be supplied within the token itself, an attacker controls both the data being signed and the key used to verify that signature—rendering the verification meaningless.

Root Cause

The root cause is the automatic extraction and use of the jwk header field when no key is explicitly provided. In the vulnerable code path, when key is None and a jwk field exists in the header, the library assigns header["jwk"] as the verification key. This allows attacker-controlled input to determine the cryptographic key used for signature verification, completely undermining the authentication mechanism.

Attack Vector

An attacker can exploit this vulnerability through the following attack flow:

  1. Generate an attacker-controlled RSA or EC key pair
  2. Craft a malicious JWT with arbitrary claims (e.g., elevated privileges, impersonated user identity)
  3. Sign the token using the attacker's private key
  4. Embed the attacker's public key in the JWT's jwk header field
  5. Submit the forged token to the vulnerable application
  6. The server verifies the signature using the attacker-supplied public key and accepts the token as valid

The vulnerable code automatically extracted the jwk from the header when no key was provided:

python
# Vulnerable code in authlib/jose/rfc7515/jws.py (before patch)
        algorithm = self.ALGORITHMS_REGISTRY[alg]
        if callable(key):
            key = key(header, payload)
-       elif key is None and "jwk" in header:
-           key = header["jwk"]
        key = algorithm.prepare_key(key)
        return algorithm, key

Source: GitHub Commit

The same pattern existed in the JWE implementation:

python
# Vulnerable code in authlib/jose/rfc7516/jwe.py (before patch)
def prepare_key(alg, header, key):
    if callable(key):
        key = key(header, None)
-   elif key is None and "jwk" in header:
-       key = header["jwk"]
    return alg.prepare_key(key)

Source: GitHub Commit

Detection Methods for CVE-2026-27962

Indicators of Compromise

  • JWT tokens containing embedded jwk header fields in authentication requests
  • Unusual authentication success patterns for users or sessions that should not have access
  • JWT tokens with public keys that do not match the server's configured signing keys
  • Authentication logs showing successful validation of tokens with unrecognized key material

Detection Strategies

  • Monitor for JWT tokens containing jwk header fields in authentication endpoints
  • Implement logging to capture and alert on tokens that include embedded key material
  • Review application code for instances where JWS/JWE deserialization is called with key=None
  • Deploy dependency scanning tools to identify vulnerable Authlib versions in your environment

Monitoring Recommendations

  • Enable detailed logging for all JWT validation operations including header contents
  • Set up alerts for authentication anomalies that may indicate token forgery
  • Monitor package management systems for outdated Authlib dependencies
  • Implement token introspection logging to detect unusual claim patterns

How to Mitigate CVE-2026-27962

Immediate Actions Required

  • Upgrade Authlib to version 1.6.9 or later immediately
  • Audit all code paths that use JWS/JWE deserialization to ensure explicit keys are always provided
  • Review authentication logs for evidence of exploitation using embedded jwk headers
  • Invalidate and rotate any existing tokens that may have been issued during the vulnerable period

Patch Information

The vulnerability has been patched in Authlib version 1.6.9. The fix removes the automatic extraction and use of the jwk header field when key=None is passed to deserialization functions. After the patch, applications must always provide an explicit key for signature verification.

Upgrade using pip:

bash
pip install --upgrade authlib>=1.6.9

For additional details, refer to the GitHub Security Advisory GHSA-wvwj-cvrp-7pv5 and the patched release v1.6.9.

Workarounds

  • Always provide an explicit key parameter when calling JWS/JWE deserialization functions—never pass key=None
  • Implement additional validation logic to reject any JWT tokens containing jwk header fields
  • Use a key lookup callback function that ignores the header's jwk field and retrieves keys from a trusted source only
  • Consider implementing token structure validation at the application layer to reject tokens with unexpected headers
bash
# Verify installed Authlib version and upgrade if vulnerable
pip show authlib | grep Version
pip install --upgrade 'authlib>=1.6.9'

# Confirm upgrade was successful
pip show authlib | grep Version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechAuthlib

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-347
  • Technical References
  • GitHub Release v1.6.9
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-wvwj-cvrp-7pv5
  • Related CVEs
  • CVE-2026-28490: Authlib Auth Bypass Vulnerability

  • CVE-2026-28498: Authlib Auth Bypass Vulnerability

  • CVE-2026-28802: Authlib Auth Bypass Vulnerability

  • CVE-2024-37568: Authlib Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English