CVE-2026-137581 in jwt-frameworkinfo

Summary

by MITRE • 11/26/2026

web-token jwt-framework and jwt-library before 3.4.13, 4.0.x before 4.0.9, 4.1.x before 4.1.11, and 4.2.x before 4.2.6, and jwt-encryption and jwt-signature through 3.2.10, contain a denial of service vulnerability because the JWS and JWE serializers pass attacker-controlled tokens and protected headers to json_decode() without bounds before verification. Unauthenticated attackers can submit large tokens with colliding header member names or deeply nested arrays to cause quadratic decoding time or fatal memory exhaustion.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 11/26/2026

The web-token library, encompassing the jwt-framework, jwt-library, jwt-encryption, and jwt-signature components across multiple version branches including 3.x prior to 3.4.13, 4.0.x prior to 4.0.9, 4.1.x prior to 4.1.11, and 4.2.x prior to 4.2.6 as well as jwt-encryption and jwt-signature through version 3.2.10, contains a critical denial of service vulnerability rooted in improper input validation during the JSON decoding process. This flaw specifically affects how JWS (JSON Web Signature) and JWE (JSON Web Encryption) serializers handle incoming tokens before cryptographic verification takes place. The core technical deficiency lies in the direct passage of attacker-controlled token payloads and protected headers to the json_decode function without implementing any bounds checking or complexity limits on the structure of the input data. This architectural oversight allows malicious actors to exploit the underlying JSON parsing engine's behavior regarding complex structures, leading to significant resource exhaustion.

The operational impact of this vulnerability is severe, as it enables unauthenticated attackers to trigger a denial of service condition against systems relying on these libraries for authentication or token processing. By submitting specially crafted tokens containing colliding header member names or deeply nested array structures, an attacker can force the json_decode function into quadratic time complexity execution paths or cause fatal memory exhaustion errors. This type of attack is particularly dangerous because it does not require valid credentials or successful cryptographic verification; the mere act of parsing the malformed JSON payload within the protected headers is sufficient to degrade system performance or crash the application process entirely. Such resource consumption can lead to service unavailability for legitimate users and may also impact other processes sharing the same server resources, effectively creating a localized denial of service that could escalate into broader infrastructure instability depending on the deployment environment.

From a classification perspective, this vulnerability aligns with CWE-400 Uncontrolled Resource Consumption, as the application fails to limit the amount of system resources consumed by processing untrusted input. It also relates to CWE-20 Improper Input Validation because the library does not adequately sanitize or constrain the structure and size of JSON objects before parsing them into native data structures. In terms of offensive security frameworks, this exploit maps directly to MITRE ATT&CK technique T1496 Resource Hijacking under the sub-technique for Denial of Service via resource exhaustion. The attack vector is classified as Network Access with Low Complexity and requires no authentication, making it a high-risk vulnerability that can be exploited remotely by any actor capable of sending HTTP requests to the affected service endpoints.

To mitigate this risk, organizations must immediately upgrade their web-token dependencies to versions 3.4.13 or later for the 3.x branch, 4.0.9 or later for the 4.0.x branch, 4.1.11 or later for the 4.1.x branch, and 4.2.6 or later for the 4.2.x branch. Additionally, jwt-encryption and jwt-signature components should be updated to version 3.2.11 or higher where applicable. For environments that cannot immediately patch due to dependency conflicts, implementing a web application firewall rule set that restricts the maximum size of JSON payloads in JWT headers can provide temporary relief by dropping excessively large requests before they reach the vulnerable parsing logic. Furthermore, developers should consider implementing custom validation layers that enforce strict limits on array nesting depth and key uniqueness within header objects prior to passing them to standard library functions. Regular security audits focusing on input handling in cryptographic libraries are essential to prevent similar issues where performance characteristics of underlying parsers are exploited for denial of service attacks.

Responsible

VulnCheck

Reservation

11/26/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00225

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!