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

CVE-2025-65015: Hsiaoming Joserfc DOS Vulnerability

CVE-2025-65015 is a denial of service flaw in Hsiaoming Joserfc that allows attackers to send arbitrarily large JWT tokens, causing logging systems to process extremely large messages. This article covers the technical details.

Published: April 15, 2026

CVE-2025-65015 Overview

CVE-2025-65015 is a resource exhaustion vulnerability affecting joserfc, a Python library that provides implementations of several JSON Object Signing and Encryption (JOSE) standards. The vulnerability exists in how the library handles exception messages when processing oversized JWT tokens. When ExceededSizeError exceptions are raised, they embed non-decoded JWT token parts in the exception message, potentially causing Python logging systems to process and store arbitrarily large, attacker-controlled payloads.

Critical Impact

Attackers can exploit misconfigured web servers to send arbitrarily large bearer tokens, causing Python logging systems and diagnostic tools to process extremely large log messages containing full JWT payloads, leading to denial of service through resource exhaustion.

Affected Products

  • hsiaoming joserfc versions 1.3.3 to before 1.3.5
  • hsiaoming joserfc versions 1.4.0 to before 1.4.2

Discovery Timeline

  • 2025-11-18 - CVE-2025-65015 published to NVD
  • 2026-01-15 - Last updated in NVD database

Technical Details for CVE-2025-65015

Vulnerability Analysis

This vulnerability is classified as CWE-770 (Allocation of Resources Without Limits or Throttling). The core issue stems from the library's error handling behavior when processing oversized JWT tokens. When the joserfc.jwt.decode() operation encounters a JWT that exceeds size limits, it raises a joserfc.errors.ExceededSizeError() exception with the full JWT payload embedded in the exception message.

The attack scenario requires a web application environment where the production-grade web server is either misconfigured or absent, allowing attackers to bypass typical HTTP request size limitations. In such configurations, an attacker can craft HTTP requests with arbitrarily large bearer tokens in the authorization headers. When the Python application attempts to decode these tokens using joserfc, the library loads the entire payload into memory before performing size validation checks.

At this stage, the library cannot prevent or reject the oversized payload since it's already fully loaded into memory. The exception message containing the full payload then propagates to Python logging frameworks or diagnostic tools like Sentry, which may attempt to process, format, and store these extremely large log entries.

Root Cause

The root cause is the design decision to embed raw JWT token parts directly into exception messages without truncation or sanitization. When the library validates claims and signature payload sizes, it raises exceptions that include the complete payload content. Since memory allocation occurs before validation, the library lacks the ability to prevent resource consumption once an oversized token is received. This creates a condition where attacker-controlled data of arbitrary size flows directly into logging infrastructure.

Attack Vector

The attack leverages network-accessible endpoints that process JWT authentication tokens. An attacker targets applications where:

  1. The web server layer does not enforce strict HTTP header size limits
  2. The Python application uses joserfc for JWT decoding
  3. The application logs exceptions or uses diagnostic tools that capture error details

By sending HTTP requests with extremely large bearer tokens in the Authorization header, the attacker triggers the size validation exception. The exception message, containing the full attacker-supplied payload, then flows into logging systems. This can exhaust disk space, memory, or processing capacity of logging infrastructure, potentially causing denial of service to both the application and downstream log aggregation systems.

The vulnerability allows an attacker to amplify their impact by targeting the logging infrastructure rather than the application directly, potentially affecting monitoring capabilities and incident response.

Detection Methods for CVE-2025-65015

Indicators of Compromise

  • Unusually large HTTP Authorization headers in web server access logs
  • Abnormally large log entries containing base64-encoded or JWT-formatted data
  • Rapid disk space consumption in log directories
  • Memory exhaustion events in Python application processes or logging services
  • Sentry or similar diagnostic tools reporting processing failures due to oversized payloads

Detection Strategies

  • Monitor HTTP request header sizes at the web server or load balancer level for anomalously large Authorization headers
  • Implement alerting on log file growth rates and sizes to detect sudden spikes
  • Configure application performance monitoring to track memory usage patterns in Python processes handling authentication
  • Review joserfc version deployments across the environment to identify vulnerable installations

Monitoring Recommendations

  • Set up log aggregation alerts for entries exceeding normal size thresholds
  • Monitor Python application resource consumption metrics during authentication flows
  • Implement rate limiting and size restrictions at the web application firewall layer
  • Track disk I/O and storage utilization on log storage systems

How to Mitigate CVE-2025-65015

Immediate Actions Required

  • Upgrade joserfc to version 1.3.5 or 1.4.2 depending on your current version branch
  • Configure web server or reverse proxy to enforce HTTP header size limits
  • Implement request size validation at the application gateway before requests reach the Python application
  • Review and configure log rotation policies to prevent disk exhaustion from large log entries

Patch Information

The vulnerability has been addressed in joserfc versions 1.3.5 and 1.4.2. Users on the 1.3.x branch should upgrade to version 1.3.5, while users on the 1.4.x branch should upgrade to version 1.4.2. Security patches are available through the GitHub Release Version 1.3.5 and GitHub Release Version 1.4.2. Technical details of the fix can be reviewed in the GitHub Security Advisory GHSA-frfh-8v73-gjg4.

Workarounds

  • Deploy a production-grade web server (nginx, Apache) with properly configured request header size limits in front of Python applications
  • Implement middleware to validate and reject oversized Authorization headers before they reach JWT processing code
  • Configure logging frameworks to truncate exception messages above a certain threshold
  • Use structured logging with size limits on individual field values
bash
# Example nginx configuration to limit header buffer size
# Add to http or server block
large_client_header_buffers 4 8k;
client_header_buffer_size 1k;

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechHsiaoming Joserfc

  • SeverityCRITICAL

  • CVSS Score9.2

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H/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
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-770
  • Technical References
  • GitHub Release Version 1.3.5

  • GitHub Release Version 1.4.2
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory GHSA-frfh-8v73-gjg4
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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