CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-102274

CVE-2026-102274: Denial of Service via Unhandled Exception in PyJWT JWK Set Parser

Alon Barad
Alon Barad
Software Engineer

Sep 29, 2026·6 min read·52 visits

Executive Summary (TL;DR)

An unhandled ValueError during RSA key recovery in PyJWT (2.9.0 - 2.13.0) crashes the entire JWK Set parser, allowing attackers to trigger a Denial of Service via malformed keys.

A vulnerability in PyJWT's JWK Set parsing logic allows a malformed RSA key to trigger an unhandled ValueError, leading to an application-wide or request-level Denial of Service.

Vulnerability Overview

JSON Web Key Sets (JWKS) are used by modern web applications to dynamically fetch and cache public keys published by Identity Providers (IdPs). This mechanism allows applications to verify JSON Web Tokens (JWTs) without hardcoding cryptographic keys. In PyJWT, this JWK Set parsing and management logic is handled by the PyJWKSet class, which exposes a vital attack surface.

The vulnerability identified as CVE-2026-102274 represents a flaw classified under CWE-755: Improper Handling of Exceptional Conditions. When parsing a JWK Set, the parsing loop is designed to catch PyJWT-specific errors, allowing individual malformed or unsupported keys to be skipped so that the application can still load other valid keys. However, certain cryptographic validation failures raise a built-in Python ValueError instead of a custom library exception.

Because ValueError does not inherit from PyJWT's custom base exception class PyJWTError, it bypasses the exception handler within the parser loop. This unhandled exception immediately bubbles up to the calling application, halting the parsing process entirely. Consequently, a single malformed JWK in a set of otherwise valid keys will cause the entire JWK Set initialization to fail.

Root Cause Analysis

At the core of the vulnerability is how PyJWT handles RSA keys that contain a private exponent d but lack Chinese Remainder Theorem (CRT) parameters. When such a key is encountered, the RSAAlgorithm.from_jwk function in jwt/api_jwk.py is executed to rebuild the complete key structure. This function relies on the underlying Python cryptography library's rsa_recover_prime_factors function to reconstruct the missing parameters.

If the provided value for d is mathematically incompatible with the modulus n or the public exponent e, the cryptographic calculation fails. This failure is signaled by the cryptography library throwing a standard Python ValueError. This standard error represents an exceptional condition that PyJWT's wrapper does not anticipate or map.

In PyJWT versions 2.9.0 through 2.13.0, the parser loop only catches PyJWTError when initializing each PyJWK object within a PyJWKSet. Since ValueError is a standard Python built-in exception and does not inherit from PyJWTError, the exception escapes the loop. The lack of strict error mapping at the level of the cryptographic backend caller causes the failure to cascade up the call stack, aborting the loading of all subsequent valid keys.

Code Analysis

The vulnerability exists inside the PyJWK constructor. Below is an analysis of the vulnerable and patched code paths.

Prior to the patch, the constructor of PyJWK in jwt/api_jwk.py resolved the algorithm and constructed the key directly:

# Vulnerable Code in PyJWT <= 2.13.0
class PyJWK:
    def __init__(self, jwk_data: JWKDict, algorithm: str | None = None) -> None:
        # ... algorithm resolution ...
        self.key = self.Algorithm.from_jwk(self._jwk_data)

In this implementation, any exception raised during self.Algorithm.from_jwk that is not a subclass of PyJWTError escapes the initializer. The fix implemented in version 2.14.0 addresses this by wrapping the call in a try-except block:

# Patched Code in PyJWT >= 2.14.0
class PyJWK:
    def __init__(self, jwk_data: JWKDict, algorithm: str | None = None) -> None:
        # ... algorithm resolution ...
        try:
            self.key = self.Algorithm.from_jwk(self._jwk_data)
        except ValueError as error:
            raise InvalidKeyError(
                f"Unable to construct key from JWK: {error}"
            ) from error

By trapping ValueError and converting it into InvalidKeyError (which inherits from PyJWTError), the patch ensures that the parsing loop in PyJWKSet can catch the exception, log the invalid key, and safely continue to parse the remaining valid keys in the JWKS payload.

Exploitation Methodology

Exploitation of CVE-2026-102274 depends on the target application's configuration for resolving JWK Sets. If the application fetches a JWK Set from an external, untrusted, or user-configurable URI, an attacker can exploit this behavior. The attacker must possess the ability to inject or host a malformed JWKS payload containing at least one malformed RSA key.

To craft a triggering key, the attacker defines a JSON object with "kty": "RSA", a valid public modulus "n", a valid public exponent "e", but a mathematically invalid private exponent "d". Crucially, the standard CRT parameters (p, q, dp, dq, qi) must be omitted. This omission forces the library to call rsa_recover_prime_factors during parsing, which triggers the target mathematical calculation.

When the target application performs token verification and retrieves the JWK Set, PyJWT attempts to process the keys. The parser encounters the malformed key, raises an unhandled ValueError, and crashes the token verification routine. This results in a request-level Denial of Service, returning a 500 Internal Server Error to the user and preventing any legitimate JWTs within that set from being validated.

Impact Assessment

The impact of CVE-2026-102274 is classified as a Denial of Service (DoS) affecting application availability. Although there is no risk of remote code execution or data confidentiality loss directly through this flaw, the impact on authentication services is high. In systems where authentication relies on a shared, dynamic JWKS, a single malicious JWK can lock out all users of the service.

The CVSS v3.1 score of 5.9 reflects this specific impact profile. The attack vector is Network, but the complexity is High because the attacker must find a way to make the application parse a malicious JWK Set (e.g., via multi-tenant environments or IDP manipulation). No special privileges or user interactions are required to trigger the failure once the key is in the parser's path.

The Exploit Prediction Scoring System (EPSS) score of 0.00352 indicates a relatively low probability of exploitation in the wild, largely because the attack complexity relies on specific application architectures. However, for vulnerable multi-tenant software as a service (SaaS) or API gateways that fetch external JWKS, the flaw represents a reliable way to disrupt authentication availability.

Remediation & Defense-in-Depth

The definitive remediation for CVE-2026-102274 is upgrading to PyJWT version 2.14.0 or later. This version correctly translates any ValueError raised by the underlying cryptographic libraries during key creation into a manageable InvalidKeyError, preventing parser loop abortion.

If an immediate upgrade is not feasible, several defensive workarounds can be applied. Applications should avoid dynamic JWK Set loading from untrusted or user-supplied URLs. Implementing strict input validation on JWKS endpoints, or caching only verified public keys, significantly reduces the attack surface.

Furthermore, implementing robust error handling around JWT verification routines ensures that even if PyJWKSet parsing fails, the error is caught at the application layer. This prevents the application process from crashing and allows for graceful degradation, such as falling back to secondary authentication providers or returning structured error messages without dropping the daemon process.

Fix Analysis (1)

Technical Appendix

CVSS Score
5.9/ 10

Affected Systems

Applications using PyJWT versions 2.9.0 through 2.13.0 that process JSON Web Key Sets (JWKS).

Affected Versions Detail

Product
Affected Versions
Fixed Version
pyjwt
jpadilla
>= 2.9.0, < 2.14.02.14.0
AttributeDetail
CWE IDCWE-755
Attack VectorNetwork
CVSS Score5.9 (Medium)
EPSS Score0.00352 (Percentile: 26.40%)
ImpactDenial of Service (DoS)
Exploit StatusProof of Concept
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1499Endpoint Denial of Service
Impact

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•30 minutes ago•CVE-2026-114147
7.5

CVE-2026-114147: Denial of Service via Memory Leak in ASP.NET Core SignalR Redis Backplane

CVE-2026-114147 is a high-severity Denial of Service (DoS) vulnerability affecting ASP.NET Core and specifically the Microsoft.AspNetCore.SignalR.StackExchangeRedis scale-out provider across .NET 8.0, 9.0, 10.0, and 11.0 preview releases. The vulnerability originates from a string comparison mismatch between internal per-connection group collections and the centralized Redis channel subscription registry, compounded by a race condition during connection teardown. Remote unauthenticated attackers can exploit this flaw to leave orphaned connection contexts and active Redis pub/sub listeners pinned in memory, leading to unbounded memory exhaustion and application process termination.

Amit Schendel
Amit Schendel
0 views•10 min read
•about 2 hours ago•CVE-2026-114156
6.5

CVE-2026-114156: Path Equivalence Security Feature Bypass in Microsoft ASP.NET Core

CVE-2026-114156 is an improper resolution of path equivalence vulnerability (CWE-41) in Microsoft ASP.NET Core affecting .NET 11.0 preview releases and Microsoft Visual Studio 2026. The vulnerability stems from a discrepancy between how path prefix validation helpers (such as PathString.StartsWithSegments) and downstream routing mechanisms handle alternate path separators and percent-encoded characters. An unauthenticated remote attacker can exploit this mismatch over the network to bypass path-based authorization middleware and access restricted endpoints.

Amit Schendel
Amit Schendel
4 views•8 min read
•about 3 hours ago•CVE-2026-114157
7.5

CVE-2026-114157: Local Privilege Escalation via Race Condition in ASP.NET Core Kestrel Named Pipes Transport

CVE-2026-114157 is a high-severity local privilege escalation and security feature bypass vulnerability affecting ASP.NET Core on Microsoft Windows. The flaw resides in the Kestrel web server's Named Pipes transport layer (Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes) and stems from a race condition (CWE-362) during broken pipe error recovery. When an active connection throws an IOException during handshake acceptance, the connection listener previously disposed of the broken NamedPipeServerStream instance before acquiring a replacement stream from its internal pool. This sequence created a momentary window where zero server instances of the named pipe existed in the Windows Named Pipe File System (NPFS). A local, low-privileged attacker can exploit this timing window to create a named pipe with the identical name and a permissive Discretionary Access Control List (DACL), hijacking subsequent inter-process communications and escalating privileges across security boundaries.

Amit Schendel
Amit Schendel
6 views•11 min read
•about 3 hours ago•CVE-2026-124194
6.5

CVE-2026-124194: Forced Authentication and NetNTLMv2 Credential Leakage in Microsoft Office Outlook

CVE-2026-124194 is a forced authentication and spoofing vulnerability in Microsoft Office Outlook caused by a missing user interface warning before dereferencing remote network paths (CWE-356). By embedding an attacker-controlled Universal Naming Convention (UNC) path within MAPI message properties such as PidLidReminderFileParameter, an unauthenticated remote attacker can force a victim's system to initiate an outbound SMB or WebDAV connection upon opening or previewing a crafted message. This automatic authentication handshake leaks the user's NetNTLMv2 hash, enabling offline password cracking or real-time NTLM relay attacks. The vulnerability was exploited in the wild as a zero-day prior to its remediation in Microsoft's November 2026 Patch Tuesday updates and is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

Alon Barad
Alon Barad
15 views•10 min read
•about 4 hours ago•CVE-2026-114154
7.5

CVE-2026-114154: Denial of Service in ASP.NET Core HttpSys Request Header Processing

CVE-2026-114154 is a high-severity Denial of Service (DoS) and uncontrolled resource consumption vulnerability in the Microsoft.AspNetCore.Server.HttpSys component of ASP.NET Core. When processing an HTTP request that simultaneously contains a chunked Transfer-Encoding header, a Content-Length header, and an explicit X-Content-Length header, the server throws an unhandled ArgumentException during header normalization. In certain versions, subsequent exception handling attempts to dereference a disposed native request context, aborting error response dispatch and leaking unmanaged HTTP.sys request structures.

Amit Schendel
Amit Schendel
4 views•9 min read
•about 5 hours ago•CVE-2026-120778
7.3

CVE-2026-120778: Local Elevation of Privilege via Insecure Temporary Directory Handling and MSBuild Response File Hijacking in Microsoft .NET Aspire CLI

A local elevation of privilege vulnerability exists in the Microsoft .NET Aspire CLI (`Aspire.Cli`) versions 13.5.4 prior to 13.6.5. When executing SDK management commands (`aspire sdk generate`, `aspire sdk dump`, and `aspire sdk export`), the CLI creates temporary project directories inside the shared operating system temporary folder (such as `/tmp` on Unix-like systems) without restricting directory permissions or disabling MSBuild automatic response file resolution. A local, low-privileged attacker on a multi-user system can place a crafted `Directory.Build.rsp` file in the shared temporary directory hierarchy. When a victim user executes an affected Aspire CLI command, MSBuild traverses upward, ingests the attacker-controlled response file, and executes arbitrary commands in the security context of the victim user.

Alon Barad
Alon Barad
4 views•10 min read