Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint verifying peer-chosen RSA keys (e.g., DPoP)
-
DeliveryCraft JWS with oversized RSA jwk modulus/exponent
-
ExploitSubmit as unauthenticated DPoP proof or encryption target
-
ExecutionRSAKey exponentiates/base-converts the huge key in PHP
-
PersistSingle verification consumes seconds of uninterruptible CPU
-
ImpactFlood 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
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 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
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.
Apply vendor patch.
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
Unauthenticated CPU and memory exhaustion in web-token/jwt-framework and web-token/jwt-library lets anyone who can submi
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
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-136754
NVD
CVE.org
EPSS
GitHub
Exploit-DB