Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-65015: CWE-770: Allocation of Resources Without Limits or Throttling in authlib joserfc

0
Critical
VulnerabilityCVE-2025-65015cvecve-2025-65015cwe-770
Published: Tue Nov 18 2025 (11/18/2025, 23:07:44 UTC)
Source: CVE Database V5
Vendor/Project: authlib
Product: joserfc

Description

joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. In versions from 1.3.3 to before 1.3.5 and from 1.4.0 to before 1.4.2, the ExceededSizeError exception messages are embedded with non-decoded JWT token parts and may cause Python logging to record an arbitrarily large, forged JWT payload. In situations where a misconfigured — or entirely absent — production-grade web server sits in front of a Python web application, an attacker may be able to send arbitrarily large bearer tokens in the HTTP request headers. When this occurs, Python logging or diagnostic tools (e.g., Sentry) may end up processing extremely large log messages containing the full JWT header during the joserfc.jwt.decode() operation. The same behavior also appears when validating claims and signature payload sizes, as the library raises joserfc.errors.ExceededSizeError() with the full payload embedded in the exception message. Since the payload is already fully loaded into memory at this stage, the library cannot prevent or reject it. This issue has been patched in versions 1.3.5 and 1.4.2.

AI-Powered Analysis

AILast updated: 11/26/2025, 00:16:32 UTC

Technical Analysis

CVE-2025-65015 is a critical resource exhaustion vulnerability in the joserfc Python library, which implements JSON Object Signing and Encryption (JOSE) standards. The flaw exists in versions 1.3.3 through before 1.3.5 and 1.4.0 through before 1.4.2. When decoding JWT tokens, if a token exceeds expected size limits, the library raises an ExceededSizeError exception embedding the entire JWT payload in the exception message. Since the payload is already fully loaded into memory during the decode operation, the library cannot prevent processing of arbitrarily large tokens. In scenarios where a Python web application uses joserfc behind a misconfigured or absent production-grade web server, an attacker can send oversized bearer tokens in HTTP headers. These large tokens cause Python logging frameworks or diagnostic tools like Sentry to process and store extremely large log messages containing the full JWT header and payload. This can lead to excessive memory consumption, disk usage, and potential denial of service conditions. The vulnerability does not require authentication or user interaction and can be exploited remotely. The issue was patched in joserfc versions 1.3.5 and 1.4.2 by preventing embedding of full payloads in exception messages and adding proper size checks. No known exploits are currently reported in the wild, but the high CVSS 4.0 score of 9.2 reflects the critical risk posed by this vulnerability.

Potential Impact

For European organizations, this vulnerability poses a significant risk of denial of service attacks against Python web applications that rely on vulnerable joserfc versions for JWT processing. Attackers can exploit this flaw to overwhelm application memory and logging infrastructure by sending oversized JWT bearer tokens, potentially causing application crashes, degraded performance, or loss of availability. This can disrupt critical services, especially in sectors like finance, healthcare, and government where JWT-based authentication is common. Additionally, logging systems may become unreliable or corrupted due to excessively large log entries, complicating incident response and monitoring. Organizations with inadequate front-end web server configurations that do not enforce request size limits are particularly vulnerable. The lack of authentication or user interaction requirements makes exploitation easier and increases the attack surface. The vulnerability could also be leveraged as part of multi-stage attacks to distract defenders or degrade security monitoring capabilities.

Mitigation Recommendations

1. Upgrade all instances of the joserfc library to versions 1.3.5 or 1.4.2 or later, which contain patches preventing full payload embedding in exception messages and enforce size limits. 2. Configure production-grade web servers (e.g., Nginx, Apache) or API gateways to enforce strict limits on HTTP header sizes and overall request sizes to block oversized JWT tokens before they reach the application. 3. Deploy Web Application Firewalls (WAFs) with rules to detect and block anomalously large bearer tokens or suspicious JWT structures. 4. Monitor application logs and diagnostic tools for unusually large log entries or spikes in memory/disk usage that may indicate exploitation attempts. 5. Review and harden logging configurations to limit maximum log message sizes and prevent logging of untrusted input in full. 6. Conduct security testing and code reviews to ensure no other components embed large untrusted data in exceptions or logs. 7. Educate development and operations teams about the risks of resource exhaustion via unbounded input processing and the importance of input validation and throttling.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2025-11-13T15:36:51.680Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 691d040cb61595322dd84bc2

Added to database: 11/18/2025, 11:41:00 PM

Last enriched: 11/26/2025, 12:16:32 AM

Last updated: 1/8/2026, 12:42:44 PM

Views: 129

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats