Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit oversized crafted JWS/JWE token to JWT-loading endpoint
-
DeliverySerializer passes token/headers to json_decode before verification
-
ExploitColliding header names or deeply nested arrays trigger quadratic hashing or ~100x memory blowup
-
ExecutionExhaust worker CPU or hit fatal memory_limit
-
ImpactTie up worker pool, deny service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
|
| Exploitation Conditions | The application must load or unserialize JWS/JWE tokens from untrusted senders via the affected services - JWSSerializerManager, JWESerializerManager, JWSLoader, JWELoader, NestedTokenLoader, or the Symfony bundle services built on them - across any serialization (compact, JSON flattened, JSON general). The attacker-controlled token must reach several hundred kilobytes, so exposure is gated by the HTTP stack: request-body tokens (form-posted client_assertion, request objects, form_post responses, back-channel logout tokens) are exploitable under PHP's default post_max_size of 8 MB, making default request-body deployments vulnerable. Header-borne tokens (bearer, DPoP proofs) are effectively harmless behind nginx or Apache, which cap a header line at 8 KB by default, but ARE exploitable on Caddy/FrankenPHP, which accepts ~1 MB headers by default (a 1 MB compact JWS in an Authorization header took 5.4 s to reject). Limiting factors: no authentication is required, but the endpoint must accept large untrusted tokens and the server must not already enforce body/header size limits. Every release prior to the fixes is affected. |
| Impact | This is a credible but impact-limited priority. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) and the vendor advisory agree: an unauthenticated (PR:N) remote attacker can trigger the flaw over the network, with the sole impact being availability (VA:H; VC/VI = N) - no disclosure and no token is ever accepted. The AT:P (attack requirement present) metric is well-grounded in the evidence: successful exploitation requires the HTTP stack to pass a several-hundred-kilobyte token to the library, which is the case for request-body tokens under PHP's default post_max_size (8 MB) but NOT for header-borne tokens behind nginx/Apache (8 KB header cap by default), though it IS the case on Caddy/FrankenPHP (~1 MB headers). The vuln.today decision label is 'this_week' (not act_now/emergency). No CISA KEV listing and no EPSS score are present in the input, and no confirmed public exploit code is provided - only the vendor's detailed technical write-up. So the signals are internally consistent: a real, easily reproducible DoS against exposed deployments, but confined to availability and gated by a deployment-dependent size requirement, which is why it rates high-but-not-critical rather than a drop-everything emergency. Hash-collision and nested-array amplification are explicitly described in the advisory (28C3/Klink-Wälde class), so the mechanism is confirmed, not inferred. |
| Exploit ScenarioDerived | An attacker posts a ~1.3 MB compact JWS whose protected header contains 65,536 hash-colliding member names to any endpoint that loads JWTs from untrusted senders (e.g. a form-posted client_assertion or request object). The serializer calls json_decode() before any key or header check, so decoding takes roughly 8.6 s of CPU per request; alternatively a ~1.25 MB token of deeply nested arrays exhausts PHP's 128 MB memory_limit and ends the request in an uncatchable fatal error. A handful of concurrent requests keeps every worker in the pool busy, denying service. No public exploit code is identified, but the vendor advisory describes the technique in full detail. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Unauthenticated CPU and memory exhaustion in web-token/jwt-framework and web-token/jwt-library lets anyone who can submit a JWS or JWE token dictate what its rejection costs: every serializer passes the token, or its base64url-decoded protected headers, to json_decode() before any algorithm, header checker or key is consulted. All releases before 3.4.13, 4.0.9, 4.1.11 and 4.2.6 are affected, as are jwt-encryption and jwt-signature through 3.2.10, with exposure gated by how large a token the HTTP stack accepts (request bodies up to post_max_size are exposed by default, header-borne tokens mainly on Caddy/FrankenPHP). No public exploit identified at time of analysis, and the assessed impact is availability only (CVSS 3.1 AV:N/AC:L/PR:N/UI:N/A:H, CVSS 4.0 base 8.2).
RemediationAI
Upgrade to the fixed releases on the branch in use: 3.4.13, 4.0.9, 4.1.11 or 4.2.6, noting that 3.4.13 is the final release of the 3.4 branch, which has reached end of life, so longer-term remediation means moving to 4.2.6 or later. The fix counts brackets, braces and commas outside string literals before decoding, giving all documents of one token (the token itself in JSON serializations plus each protected header) a shared budget of 4,096 values; tokens beyond that budget are rejected before json_decode() runs with the same InvalidArgumentException('Unsupported input.') used for unparseable input, in about 0.02 s and a few megabytes of memory. Be aware of the compatibility consequence: only tokens beyond the budget behave differently and are now refused even when correctly signed or encrypted, while string contents are not counted, so large payloads, unencoded (b64: false) payloads and long x5c chains are unaffected, and a JSON General JWS can still carry up to 2,047 signatures and a JWE several hundred recipients. If the upgrade cannot be applied immediately, the vendor's workaround is to bound token size before the library sees it: check strlen($token) and accept only a few tens of kilobytes, or cap request bodies and headers on the endpoints that receive tokens using client_max_body_size in nginx, LimitRequestBody and LimitRequestFieldSize in Apache, or max_header_size in Caddy. These limits also protect applications that json_decode() untrusted request bodies themselves, since PHP offers no hash-collision protection, but they must be set above legitimate token sizes or valid large tokens will be rejected. Reference: https://github.com/web-token/jwt-framework/security/advisories/GHSA-2xq2-pp89-x7fr.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 4 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
JWS and JWE serializers in the web-token libraries decode JSON in associative mode before verification, and PHP's json_decode() limits only nesting depth, not the number of members or values, so the sender of a token controls decoding cost without holding any key. Two mechanisms are described: because PHP hash tables have no per-process seed, member names chosen to collide (decimal multiples of 131072, or equal-length concatenations of the strings Ez, FY and G8) make object construction quadratic, with a 1.3 MB compact token whose protected header held 65,536 such names taking 8.6 s to reject versus 0.03 s for non-colliding names of the same length and roughly quadrupling each time the token doubles; and nested arrays like [[[...]]] decode to about a hundred times their size, so a 1 MB JSON General JWS consumed 108 MB, meaning a 1.25 MB token ends the request in a fatal error under PHP's default 128M memory_limit that the application cannot catch. The root causes map to CWE-407 (inefficient algorithmic complexity) and CWE-770 (allocation of resources without limits). Affected entry points span all three serializations (compact, JSON flattened, JSON general) and any algorithm or header checker, specifically JWSSerializerManager, JWESerializerManager, JWSLoader, JWELoader, NestedTokenLoader and the Symfony bundle services built on them; JsonConverter::decode() itself is unchanged, so key sets loaded via JKUFactory or X5UFactory and claims decoded after verification are not bounded by the fix. Nothing is disclosed and no token is accepted, so confidentiality and integrity are unaffected.
Know when Jwt Library gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Unauthenticated network-reachable DoS exploitable against default request-body configurations (AV:N/AC:L/PR:N/UI:N); only availability is affected (A:H), with no confidentiality or integrity impact and no scope change.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-407 (Inefficient Algorithmic Complexity), with CWE-770 (Allocation of Resources Without Limits or Throttling) also assigned.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
The web-token/jwt-framework and related libraries contain a high-severity resource exhaustion vulnerability (CVE-2026-137581) that allows unauthenticated attackers to crash services by submitting specially crafted JWT tokens, leading to denial of service. Organizations relying on these libraries for authentication or token processing are at risk of service outages, impacting availability and customer trust.
No vendor-released patch identified at time of analysis. Interim mitigations include configuring HTTP servers to limit request body size (e.g., reduce post_max_size) and restrict header token sizes, deploying rate limiting and web application firewalls to detect and block oversized or malformed tokens, and monitoring for unusual token payloads or resource exhaustion patterns.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Jwt Library
View allNATS Server 2.x before 2.2.0 and JWT library before 2.0.1 have Incorrect Access Control because Import Token bindings ar
Unauthenticated remote attackers can exhaust server CPU in PHP applications using the web-token/jwt-framework or jwt-lib
PHP applications using web-token/jwt-framework or its jwt-library component that register the RSA1_5 key-encryption algo
CPU-exhaustion denial of service in web-token/jwt-framework and the related jwt-library, jwt-encryption and jwt-signatur
CPU exhaustion in web-token JWT Framework (jwt-framework and jwt-library) lets an unauthenticated remote attacker keep P
JWE tokens produced with ECDH-ES (or the non-registered ECDH-SS) direct key agreement and A256CBC-HS512 in web-token/jwt
Confidentiality loss in web-token/jwt-framework and the underlying jwt-library: JWE tokens produced with direct encrypti
Unbounded RSA key parameters in web-token/jwt-framework and jwt-library allow a remote, unauthenticated attacker to cons
Unblinded RSA private key operations in web-token/jwt-framework and jwt-library (all versions before 3.4.13, 4.0.9, 4.1.
Parsing JSON General serialized JWS tokens in web-token/jwt-framework and the underlying jwt-library (before 3.4.13, 4.0
RSA-OAEP decryption in web-token/jwt-framework and jwt-library accepts a JWE Encrypted Key composed of several RSA block
The web-token/jwt-framework PHP library fails to validate the length of oct keys used with A128KW/A192KW/A256KW, A128GCM
EUVD-2026-136747
NVD
CVE.org
EPSS
GitHub
Exploit-DB