Skip to main content

web-token JWT Framework EUVDEUVD-2026-136754

| CVE-2026-137560 HIGH
Uncontrolled Resource Consumption (CWE-400)
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
    Identify endpoint verifying peer-chosen RSA keys (e.g., DPoP)
  2. Delivery
    Craft JWS with oversized RSA jwk modulus/exponent
  3. Exploit
    Submit as unauthenticated DPoP proof or encryption target
  4. Execution
    RSAKey exponentiates/base-converts the huge key in PHP
  5. Persist
    Single verification consumes seconds of uninterruptible CPU
  6. Impact
    Flood requests to exhaust server CPU (denial of service)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the application to perform an RSA operation with a key chosen by the token sender or peer rather than a key it configured itself - the canonical case being a DPoP proof whose public key arrives in the jwk header and is verified before authentication (also key proofs for OpenID4VCI, self-issued ID tokens, private_key_jwt, signed request objects, and encryption toward a client-registered key). Affected with or without GMP: PS256/PS384/PS512 signature verification and RSA-OAEP/RSA-OAEP-256/RSA1_5 encryption. Affected only when the GMP extension is absent: any RSA algorithm, including RS256/RS384/RS512. NOT affected: keys configured by the application itself, and RS256/384/512 when GMP is present (OpenSSL then rejects moduli over 16384 bits and public exponents over 64 bits above a 3072-bit modulus). Limiting factors that bound realistic impact: the attacker-supplied key size is capped by the front end's accepted header/body size (nginx and Apache default to ~8 kB headers), and applications not using peer-chosen RSA keys are unaffected.

Impact

This is a genuine, prioritizable availability issue rather than an inflated high-CVSS score, though it is scoped to specific deployment patterns. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) with VA:H and C/I both N correctly frames it as a remote, unauthenticated, availability-only denial of service; AT:P reflects that a specific condition must hold - the application must verify or encrypt using an RSA key supplied by the token sender/peer (e.g., a DPoP proof), not a key it configured itself. The vendor advisory confirms a crafted key forces seconds of CPU per operation (measured: 0.97 s for a 10 kB PS256 token with GMP, 2.7 s without GMP, up to 29.5 s for RS256 with a 1024-byte modulus and no GMP/BCMath), and crucially notes a single gmp_powm() call is not interrupted by max_execution_time. The vuln.today decision label is 'this_week' (priority, not act_now/emergency). No EPSS score, no CISA KEV listing, and no public exploit were provided in the input - so there is no public exploit identified at time of analysis and no evidence of active exploitation. The main caveat: risk is real only where the app accepts peer-chosen RSA keys and either uses PS*/RSA encryption or runs PHP without GMP; RS256/384/512 with GMP are not affected because OpenSSL rejects oversized keys. Reporting by VulnCheck and Anthropic's OSS Scanner, plus a detailed vendor GHSA with measurements, raises confidence in the technical claims.

Exploit ScenarioDerived

An attacker targets a service that verifies DPoP proofs using the web-token library, since the DPoP proof carries its own public key in the jwk header and is verified before any authentication. The attacker crafts a JWS using an RSA key with an abnormally large modulus and public exponent, keeping the token under the front end's header/body size limit (nginx/Apache default ~8 kB), and submits it so the server spends seconds of CPU on a single PS256/PS384/PS512 verification; repeating the request exhausts CPU and denies service. No public exploit code was identified at time of analysis, but the vendor advisory supplies concrete measurements that make reproduction straightforward.

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

Unbounded RSA key parameters in web-token/jwt-framework and jwt-library allow a remote, unauthenticated attacker to consume seconds of server CPU per token processed by supplying a crafted RSA key. Affected releases are all versions 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; the practical vector is a DPoP proof whose public key arrives in the jwk header and is verified before authentication, and applications that only use keys they configure themselves are not exposed. There is no public exploit identified at time of analysis, but the availability-only impact is rated high (CVSS 4.0 8.2, VA:H; assessed CVSS 3.1 A:H) and the issue is prioritized for remediation this week.

RemediationAI

Vendor-released patches fix the issue in 3.4.13 (the final release of the 3.4 branch), 4.0.9, 4.1.11 and 4.2.6, and upgrading is the vendor's stated primary remedy; the fix measures n and e from their bytes, leading zero bytes aside, before any conversion and refuses a modulus longer than 16384 bits, an exponent longer than the modulus, and an exponent longer than 64 bits when the modulus exceeds 3072 bits, applying that check to every RSA algorithm so oversized keys are rejected in milliseconds. The vendor additionally advises installing the GMP extension where the application verifies PS256/PS384/PS512 signatures or encrypts to peer-chosen keys, because those algorithms still compute the RSA public operation in PHP after the patch, bounded at about 1.2 s per operation with BCMath and about 5.5 s in pure PHP for a PS256 verification with an ordinary RSA-2048 key; the upcoming 4.3.0 moves that operation to OpenSSL. Until an upgrade is possible, the advisory's stated workaround is to validate every peer-supplied RSA key before use, refusing moduli longer than 4096 bits or exponents other than 65537 (or refusing PS256/PS384/PS512 with such keys), and to cap request header and body sizes so a token cannot carry a large key - noting that the front-end cap alone only limits, and does not eliminate, the per-request cost. Be aware of the compatibility changes in the fix: oversized keys now raise InvalidArgumentException from direct algorithm-class calls (JWSVerifier and JWEDecrypter catch it and try the next key), and keys with an empty n or e raise InvalidArgumentException instead of brick/math's NumberFormatException; every key OpenSSL accepts is still accepted and toPEM() output is byte-identical. Full details and references are in https://github.com/web-token/jwt-framework/security/advisories/GHSA-96f8-m4jr-72xj and https://www.vulncheck.com/advisories/web-token-jwt-framework-before-3.4.13-denial-of-service-via-unbounded-rsa-key-size

Affected VersionsENISA

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

Affected Packages

euvd jwt_core no fix
euvd jwt_encryption fix: 2.0.4
euvd jwt_encryption_algorithm_rsa 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 fix: 2.0.4
euvd jwt_signature_algorithm_rsa no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 7 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is rooted in the RSAKey class of the web-token PHP libraries, which every RSA algorithm routes through. It accepted a modulus n and public exponent e of arbitrary length and then performed big-integer arithmetic in pure PHP via brick/math instead of letting OpenSSL bound the work. Two cost centres result, consistent with CWE-400 (uncontrolled resource consumption) and CWE-405 (asymmetric resource consumption): first, PS256/PS384/PS512 signature verification and RSA-OAEP, RSA-OAEP-256 and RSA1_5 encryption compute RSAKey::exponentiate() in PHP, with cost growing as the bit-length of e times the square of the bit-length of n; second, without the GMP extension the base-16/base-10 conversions in the constructor and in toPEM() grow roughly with the cube of n's length (square when only BCMath is present), and are paid before OpenSSL ever sees the key, so OpenSSL's own guards never apply. Vendor measurements on PHP 8.5 with brick/math 1.0 show a 15 kB PS256 proof costing 2.8 s versus 0.0002 s for a genuine RSA-2048 proof, roughly 1 s for RSA-OAEP-256 encryption to a 2048-byte key, and an RS256 verify against a 1024-byte modulus taking 29.5 s in pure PHP, 0.11 s with BCMath only and 0.01 s with GMP. Exploitation is contingent on the application using a peer-chosen RSA key rather than its own: DPoP proofs per RFC 9449 section 4.2, OpenID4VCI key proofs and self-issued ID tokens, private_key_jwt and signed request objects, and encryption toward a client-registered key. Practical key size is bounded by the front end's accepted header or body size (nginx and Apache default to about 8 kB headers), and single gmp_powm() calls are not interrupted by max_execution_time.

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

Remote unauthenticated DoS via a peer-supplied key in the DPoP jwk header (AV:N/PR:N/UI:N); no confidentiality or integrity impact (C:N/I:N), availability high (A:H), scope unchanged.

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 - 16:00 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 contain a denial of service vulnerability in RSAKey, which accepts RSA keys with a modulus and public exponent of unbounded length. Remote attackers can supply a crafted key, such as in the jwk header of a DPoP proof, to force seconds of CPU per PS256/PS384/PS512 verification or RSA encryption, or per any RSA operation when GMP is unavailable.

Technical POC Analysis

CWE-400 (Uncontrolled Resource Consumption), with the advisory also tagging CWE-405 (asymmetric amplification).

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

CVE-2026-137560 is a high-severity availability vulnerability in the web-token/jwt-framework and jwt-library used for JWT handling. An unauthenticated attacker can force the server to consume seconds of CPU per token by supplying a crafted RSA key in a DPoP proof, potentially degrading service for all users. Leadership should care because public-facing applications using these libraries are at risk of denial-of-service, impacting customer experience and operational stability.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
widely-used PHP/Composer JWT library, common but not universal in PHP stacks
Data Quality
4 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-137581 HIGH
8.2 Nov 26

Unauthenticated CPU and memory exhaustion in web-token/jwt-framework and web-token/jwt-library lets anyone who can submi

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