NetSight
high8.2

CVE-2026-137580

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 parse JSON General serialized JWS tokens…

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 parse JSON General serialized JWS tokens in quadratic time because JSONGeneralSerializer::unserialize() adds each signature via JWS::addSignature(), which clones the token. Unauthenticated remote attackers can send large tokens holding thousands of empty signatures to exhaust CPU and occupy PHP workers without any valid key or 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)

ProductAffected versions
Jwt-framework
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
Jwt-signature
through 3.2.10
Version 0 ≤3.2.10

Weakness classification

References