CVE-2026-137559
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 allow CPU exhaustion because, on PHP wit…
Impact
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 allow CPU exhaustion because, on PHP without GMP, AbstractECDH falls back to pure PHP curve code that converts unbounded ECDH-ES epk x and y coordinates to big integers before any length check. Unauthenticated attackers who know only the recipient key's curve can send small JWEs with oversized epk coordinates, keeping workers busy for seconds to minutes per token.
An attacker can exploit this over the network, without logging in, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of outages.
Affected products (Web-token)
| Product | Affected versions |
|---|---|
| Jwt-encryption-algorithm-ecdh-es | from 2.2.0 through 3.2.10 Version 2.2.0 ≤3.2.10 |
| Jwt-framework | from 2.2.0 before 3.4.13 from 4.0.0 before 4.0.9 from 4.1.0 before 4.1.11 from 4.2.0 before 4.2.6 |
| Jwt-library | before 3.4.13 from 4.0.0 before 4.0.9 from 4.1.0 before 4.1.11 from 4.2.0 before 4.2.6 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/web-token/jwt-framework/security/advisories/GHSA-wwq7-mh3q-hwrh
- https://www.vulncheck.com/advisories/web-token-jwt-framework-before-3.4.13-ecdh-es-dos-via-oversized-epk-coordinate
- https://github.com/advisories/GHSA-cqg3-2763-9f6x
- https://nvd.nist.gov/vuln/detail/CVE-2026-137559