Skip to main content

web-token JWT Framework EUVDEUVD-2026-136747

| CVE-2026-137581 HIGH
Inefficient Algorithmic Complexity (CWE-407)
2026-11-26 VulnCheck
8.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit oversized crafted JWS/JWE token to JWT-loading endpoint
  2. Delivery
    Serializer passes token/headers to json_decode before verification
  3. Exploit
    Colliding header names or deeply nested arrays trigger quadratic hashing or ~100x memory blowup
  4. Execution
    Exhaust worker CPU or hit fatal memory_limit
  5. Impact
    Tie 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

jwt-framework 0 <3.4.13
jwt-encryption 0 ≤3.2.10
jwt-framework 4.0.0 <4.0.9
jwt-framework 4.1.0 <4.1.11
jwt-library 0 <3.4.13
jwt-library 4.2.0 <4.2.6
jwt-framework 4.2.0 <4.2.6
jwt-library 4.0.0 <4.0.9
jwt-signature 0 ≤3.2.10
jwt-library 4.1.0 <4.1.11

Affected Packages

euvd jwt_encryption no fix
euvd jwt_framework fix: 3.4.13, 4.0.9, 4.1.11, 4.2.6
euvd jwt_library fix: 3.4.13, 4.0.9, 4.1.11, 4.2.6
euvd jwt_signature no fix

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

Vendor (VulnCheck) PRIMARY 8.2 HIGH
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
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 26, 2026 - 17:02 EUVD
CVE Published
Nov 26, 2026 - 15:59 cve.org
HIGH 8.2

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
popular PHP JWT library in Symfony/OAuth/OIDC stacks, not universally deployed
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2021-3127 HIGH POC
7.5 Mar 16

NATS Server 2.x before 2.2.0 and JWT library before 2.0.1 have Incorrect Access Control because Import Token bindings ar

CVE-2026-134461 HIGH
8.7 Nov 21

Unauthenticated remote attackers can exhaust server CPU in PHP applications using the web-token/jwt-framework or jwt-lib

CVE-2026-134459 HIGH
8.2 Nov 21

PHP applications using web-token/jwt-framework or its jwt-library component that register the RSA1_5 key-encryption algo

CVE-2026-137582 HIGH
8.2 Nov 26

CPU-exhaustion denial of service in web-token/jwt-framework and the related jwt-library, jwt-encryption and jwt-signatur

CVE-2026-137559 HIGH
8.2 Nov 26

CPU exhaustion in web-token JWT Framework (jwt-framework and jwt-library) lets an unauthenticated remote attacker keep P

CVE-2026-134458 HIGH
8.2 Nov 21

JWE tokens produced with ECDH-ES (or the non-registered ECDH-SS) direct key agreement and A256CBC-HS512 in web-token/jwt

CVE-2026-137564 HIGH
8.2 Nov 26

Confidentiality loss in web-token/jwt-framework and the underlying jwt-library: JWE tokens produced with direct encrypti

CVE-2026-137560 HIGH
8.2 Nov 26

Unbounded RSA key parameters in web-token/jwt-framework and jwt-library allow a remote, unauthenticated attacker to cons

CVE-2026-137579 HIGH
8.2 Nov 26

Unblinded RSA private key operations in web-token/jwt-framework and jwt-library (all versions before 3.4.13, 4.0.9, 4.1.

CVE-2026-137580 HIGH
8.2 Nov 26

Parsing JSON General serialized JWS tokens in web-token/jwt-framework and the underlying jwt-library (before 3.4.13, 4.0

CVE-2026-137558 MEDIUM
6.3 Nov 26

RSA-OAEP decryption in web-token/jwt-framework and jwt-library accepts a JWE Encrypted Key composed of several RSA block

CVE-2026-137562 MEDIUM
6.3 Nov 26

The web-token/jwt-framework PHP library fails to validate the length of oct keys used with A128KW/A192KW/A256KW, A128GCM

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy