The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-28498

CVE-2026-28498: Authlib Auth Bypass Vulnerability

CVE-2026-28498 is an authentication bypass flaw in Authlib that allows attackers to forge ID tokens using unsupported algorithms. This article covers the technical details, affected versions, and mitigation strategies.

Published: March 20, 2026

CVE-2026-28498 Overview

CVE-2026-28498 is an authentication bypass vulnerability discovered in Authlib, a Python library used for building OAuth and OpenID Connect (OIDC) servers. The vulnerability exists in the internal hash verification logic (_verify_hash) responsible for validating at_hash (Access Token Hash) and c_hash (Authorization Code Hash) claims in OIDC ID Tokens. When the library encounters an unsupported or unknown cryptographic algorithm, it exhibits fail-open behavior, silently returning True (validation passed) instead of properly rejecting the token. This allows attackers to bypass mandatory integrity protections by supplying forged ID Tokens with deliberately unrecognized alg header parameters.

Critical Impact

Attackers can forge OIDC ID Tokens and bypass authentication controls by exploiting the fail-open hash verification behavior, potentially gaining unauthorized access to protected resources and user accounts.

Affected Products

  • Authlib versions prior to 1.6.9
  • Applications implementing OIDC authentication using vulnerable Authlib versions
  • OAuth/OIDC servers built with the affected Authlib library

Discovery Timeline

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

Technical Details for CVE-2026-28498

Vulnerability Analysis

The vulnerability resides in the _verify_hash function within authlib/oidc/core/claims.py. This function is responsible for validating the at_hash and c_hash claims in OIDC ID Tokens, which are critical security mechanisms that bind access tokens and authorization codes to their respective ID Tokens. The implementation incorrectly handles cases where the create_half_hash function returns a falsy value (indicating an unsupported algorithm), causing the verification to pass unconditionally instead of failing securely.

This fail-open design fundamentally violates cryptographic best practices and OIDC specifications, which mandate that unknown or unsupported algorithms must result in verification failure. The vulnerability allows attackers to craft malicious ID Tokens with arbitrary alg header values that the library cannot process, effectively bypassing all hash-based integrity checks.

Root Cause

The root cause is improper integrity check validation (CWE-354) in the hash verification logic. The original code checked if hash_value was falsy using a simple if not hash_value: condition and returned True when this condition was met. Since create_half_hash returns None for unsupported algorithms, the verification incorrectly passed. The fix changes the condition to explicitly check for None and return False in such cases, implementing proper fail-close behavior.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious OIDC ID Token with the following characteristics:

  1. Set the alg header parameter to an unsupported or unknown algorithm value
  2. Include arbitrary or forged at_hash and/or c_hash claims
  3. Present this token to an application using a vulnerable Authlib version

The library will fail to compute the expected hash value due to the unrecognized algorithm, but instead of rejecting the token, it will accept it as valid. This enables authentication bypass and potential account takeover scenarios through network-based attacks requiring no user interaction, though exploitation requires specific conditions to be met.

python
 
def _verify_hash(signature, s, alg):
    hash_value = create_half_hash(s, alg)
-    if not hash_value:
-        return True
+    if hash_value is None:
+        return False
    return hmac.compare_digest(hash_value, to_bytes(signature))

Source: GitHub Commit Details

Detection Methods for CVE-2026-28498

Indicators of Compromise

  • OIDC ID Tokens with unusual or non-standard alg header values (e.g., custom strings, deprecated algorithms, or random values)
  • Authentication events where token validation succeeds despite mismatched at_hash or c_hash values
  • Unexpected authentication successes from untrusted identity providers or suspicious token issuers

Detection Strategies

  • Implement application-level logging to capture all alg header values in received OIDC tokens and alert on non-standard values
  • Monitor authentication audit logs for successful authentications that correlate with suspicious token characteristics
  • Deploy web application firewall rules to inspect and flag OIDC tokens with uncommon algorithm specifications

Monitoring Recommendations

  • Enable verbose logging in Authlib to capture token validation decisions and algorithm processing
  • Implement real-time alerting for authentication anomalies, particularly successful authentications following failed cryptographic operations
  • Conduct periodic security audits of OIDC implementation configurations and token validation behaviors

How to Mitigate CVE-2026-28498

Immediate Actions Required

  • Upgrade Authlib to version 1.6.9 or later immediately
  • Review authentication logs for evidence of exploitation using forged tokens with non-standard algorithm headers
  • Audit all applications and services using Authlib for OIDC authentication and prioritize patching
  • Consider implementing additional token validation at the application layer as defense-in-depth

Patch Information

The vulnerability has been patched in Authlib version 1.6.9. The fix modifies the _verify_hash function to properly implement fail-close behavior by returning False when create_half_hash returns None for unsupported algorithms. Users should upgrade using pip:

bash
pip install --upgrade authlib>=1.6.9

For detailed information about the security fix, refer to the GitHub Security Advisory GHSA-m344-f55w-2m6j and the release notes for version 1.6.9.

Workarounds

  • Implement an allowlist of supported algorithms at the application layer before tokens reach Authlib validation
  • Add pre-validation checks to reject tokens with unrecognized alg header values
  • Deploy network-level controls to restrict token sources to trusted identity providers only
bash
# Configuration example
# Verify current Authlib version and upgrade if vulnerable
pip show authlib | grep Version
pip install --upgrade "authlib>=1.6.9"

# Verify the upgrade was successful
python -c "import authlib; print(authlib.__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

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-354
  • Technical References
  • GitHub Release v1.6.9
  • Vendor Resources
  • GitHub Commit Details

  • GitHub Security Advisory GHSA-m344-f55w-2m6j
  • Related CVEs
  • CVE-2026-27962: Authlib Auth Bypass Vulnerability

  • CVE-2026-28490: 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