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-2025-61920

CVE-2025-61920: Authlib Python Library DOS Vulnerability

CVE-2025-61920 is a denial of service flaw in Authlib's JOSE implementation that allows attackers to exhaust CPU and memory resources through malicious JWS/JWT tokens. This article covers technical details, affected versions, and mitigation.

Published: April 15, 2026

CVE-2025-61920 Overview

CVE-2025-61920 is a Denial of Service vulnerability affecting Authlib, a Python library used to build OAuth and OpenID Connect servers. The vulnerability exists in Authlib's JOSE (JSON Object Signing and Encryption) implementation, which accepts unbounded JWS (JSON Web Signature) and JWT (JSON Web Token) header and signature segments without proper size validation. A remote attacker can exploit this flaw by crafting malicious tokens with excessively large base64url-encoded header or signature segments spanning hundreds of megabytes. When Authlib attempts to verify these tokens, it decodes and parses the full input before rejection, leading to severe CPU and memory exhaustion that can bring down the affected service.

Critical Impact

Remote attackers can cause complete service denial by sending crafted JWS/JWT tokens with oversized segments, exhausting server resources and potentially impacting availability of OAuth/OIDC authentication services.

Affected Products

  • Authlib versions prior to 1.6.5

Discovery Timeline

  • 2025-10-10 - CVE CVE-2025-61920 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-61920

Vulnerability Analysis

This vulnerability is classified as CWE-20 (Improper Input Validation) and represents a Resource Exhaustion attack vector. The flaw resides in how Authlib's JOSE implementation handles incoming JWS and JWT tokens during the verification process. The library does not enforce size limits on the base64url-encoded segments that comprise a JWT or JWS token.

A standard JWT consists of three base64url-encoded segments separated by periods: the header, the payload, and the signature. When Authlib receives a token for verification, it fully decodes and parses each segment before performing any validation checks. An attacker can exploit this behavior by crafting tokens with massively oversized header or signature segments—potentially hundreds of megabytes in size.

The impact is significant because even a single malicious request can consume substantial server resources. The attack is network-accessible, requires no authentication or user interaction, and can be launched remotely against any service using vulnerable Authlib versions for token verification.

Root Cause

The root cause is the absence of input size validation in Authlib's JOSE token parsing logic. The library processes the entire token payload during verification without first checking whether the incoming data exceeds reasonable size limits. This allows an attacker to force the server to allocate excessive memory and CPU cycles for decoding and parsing oversized base64url-encoded data, leading to resource exhaustion before any semantic validation can reject the malformed token.

Attack Vector

The attack vector is network-based. An attacker can send HTTP requests containing maliciously crafted JWT or JWS tokens to any endpoint that uses Authlib for token verification. The attack characteristics include:

  • Network-accessible: Exploitable remotely without local access
  • No authentication required: Attacks can be launched by unauthenticated users
  • No user interaction needed: Fully automated exploitation is possible
  • Availability impact: Complete service disruption is achievable through resource exhaustion

The attacker constructs a token with an oversized base64url-encoded header or signature segment. When this token is submitted to an application endpoint that calls Authlib's verification functions, the library attempts to decode the entire payload, triggering excessive memory allocation and CPU processing. Repeated requests can amplify the denial of service effect.

Detection Methods for CVE-2025-61920

Indicators of Compromise

  • Abnormally large HTTP request bodies containing JWT/JWS tokens in Authorization headers or request payloads
  • Memory usage spikes on servers running Authlib-based authentication services
  • Increased CPU utilization during token processing operations
  • Application logs showing parsing timeouts or out-of-memory errors during token verification

Detection Strategies

  • Monitor for HTTP requests containing unusually large Authorization: Bearer tokens exceeding typical JWT sizes (standard JWTs are typically under 8KB)
  • Implement request size monitoring at load balancers and web application firewalls to detect oversized token submissions
  • Track memory and CPU metrics on authentication services and alert on anomalous resource consumption patterns
  • Review application logs for exceptions related to token parsing failures or memory allocation errors

Monitoring Recommendations

  • Configure application performance monitoring (APM) to track resource usage during token verification operations
  • Set up alerting thresholds for memory consumption on services using Authlib for OAuth/OIDC
  • Implement request logging to capture token sizes for forensic analysis
  • Monitor for repeated requests from single sources that may indicate DoS attempts

How to Mitigate CVE-2025-61920

Immediate Actions Required

  • Upgrade Authlib to version 1.6.5 or later, which includes the security patch for this vulnerability
  • Implement input size validation at the application layer before passing tokens to Authlib for verification
  • Deploy rate limiting and request throttling on authentication endpoints to reduce amplification risk
  • Configure web application firewalls to reject requests with oversized token payloads

Patch Information

Authlib version 1.6.5 patches this vulnerability by implementing proper size validation for JWS/JWT segments before processing. The fix is available via the GitHub commit. Users should update immediately using their package manager:

bash
pip install --upgrade authlib>=1.6.5

Additional details are available in the GitHub Security Advisory. Debian users should refer to the Debian LTS Announcement for distribution-specific updates.

Workarounds

  • Enforce input size limits at the application level before passing tokens to Authlib for verification
  • Implement application-level request throttling to limit the rate of token verification requests per client
  • Configure reverse proxies or load balancers to reject requests exceeding reasonable size thresholds
  • Deploy network-level rate limiting to prevent amplification attacks from overwhelming resources
bash
# Example: Configure nginx to limit request body size for authentication endpoints
location /oauth/ {
    client_max_body_size 16k;
    limit_req zone=auth_limit burst=10 nodelay;
}

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechAuthlib

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.50%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-20
  • Technical References
  • Debian LTS Announcement
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-41425: Authlib CSRF Vulnerability

  • CVE-2025-68158: Authlib Python Library CSRF Vulnerability

  • CVE-2026-27962: Authlib Auth Bypass Vulnerability

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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