CVE-2026-137562: web-token jwt-framework before 3.4.13 Missing Key Length Check in AES Key Wrapping
web-token jwt-framework before 3.4.13, 4.0.0 before 4.0.9, 4.1.0 before 4.1.11, and 4.2.0 before 4.2.6 does not check oct key length in the AESKW, AESGCMKW, and experimental AESCTR and chacha20-poly1305 key encryption algorithms, so OpenSSL zero-pads short or empty keys. When an application uses an empty key, anyone can unwrap content encryption keys under the all-zero key to read issued tokens and forge accepted ones.
Affected Software
Event History
Frequently Asked Questions
Which deployments are realistically exposed to token disclosure or forgery?
Deployments using the affected key-encryption algorithms with an empty oct key are exposed. In that case, an attacker can use the all-zero key to unwrap content-encryption keys, read issued tokens, and forge tokens that the application accepts.
What does an attacker need to exploit this issue?
The described impact requires the application to use an empty key with AESKW, AESGCMKW, experimental AESCTR, or chacha20-poly1305 key encryption. No privileges or user interaction are required according to the provided vector.
How can I determine whether my application is affected?
Check whether it uses composer/web-token/jwt-framework in a vulnerable version range, uses one of the affected key-encryption algorithms, and supplies an empty oct key. Short keys are zero-padded by OpenSSL as well, but the provided impact specifically identifies empty keys as enabling token reading and forgery.
What versions should be used to remediate the issue?
Upgrade to 3.4.13 or later in the 3.x line, 4.0.9 or later in the 4.0 line, 4.1.11 or later in the 4.1 line, or 4.2.6 or later in the 4.2 line.