CVE-2026-137581: web-token jwt-framework before 3.4.13 Denial of Service via Unbounded JSON Decoding
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 jsondecode() 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.
Affected Software
Event History
Frequently Asked Questions
Which package versions are affected, and which versions contain the fix?
jwt-framework and jwt-library are affected before 3.4.13, in 4.0.x before 4.0.9, in 4.1.x before 4.1.11, and in 4.2.x before 4.2.6. jwt-encryption and jwt-signature are affected through 3.2.10.
Does exploitation require an authenticated user or a valid JWT?
No. Unauthenticated attackers can submit malicious tokens, and decoding occurs before verification.
What conditions make an application exposed?
An application is exposed where attacker-controlled JWS or JWE tokens or protected headers are passed to the affected serializers. Maliciously large tokens containing colliding header member names or deeply nested arrays can trigger excessive decoding time or fatal memory exhaustion.