Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-137562: medium-severity vulnerability (CVSS 6.3) in web-token jwt-library.
What happened
Original description from the source: 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.
Why it matters
Medium severity, CVSS 6.3.
Affected products and versions
web-token jwt-library < 3.4.13; web-token jwt-library 3.4.13 (fixed in 3.4.13); web-token jwt-library >= 4.0.0, < 4.0.9; web-token jwt-library 4.0.9 (fixed in 4.0.9); web-token jwt-library >= 4.1.0, < 4.1.11; web-token jwt-library 4.1.11 (fixed in 4.1.11); web-token jwt-library >= 4.2.0, < 4.2.6; web-token jwt-library 4.2.6 (fixed in 4.2.6); web-token jwt-framework < 3.4.13; web-token jwt-framework 3.4.13 (fixed in 3.4.13); web-token jwt-framework >= 4.0.0, < 4.0.9; web-token jwt-framework 4.0.9 (fixed in 4.0.9)
| Product | Versions | Fixed in |
|---|---|---|
| web-token jwt-library | < 3.4.13 | — |
| web-token jwt-library | 3.4.13 | 3.4.13 |
| web-token jwt-library | >= 4.0.0, < 4.0.9 | — |
| web-token jwt-library | 4.0.9 | 4.0.9 |
| web-token jwt-library | >= 4.1.0, < 4.1.11 | — |
| web-token jwt-library | 4.1.11 | 4.1.11 |
| web-token jwt-library | >= 4.2.0, < 4.2.6 | — |
| web-token jwt-library | 4.2.6 | 4.2.6 |
| web-token jwt-framework | < 3.4.13 | — |
| web-token jwt-framework | 3.4.13 | 3.4.13 |
| web-token jwt-framework | >= 4.0.0, < 4.0.9 | — |
| web-token jwt-framework | 4.0.9 | 4.0.9 |
| web-token jwt-framework | >= 4.1.0, < 4.1.11 | — |
| web-token jwt-framework | 4.1.11 | 4.1.11 |
| web-token jwt-framework | >= 4.2.0, < 4.2.6 | — |
| web-token jwt-framework | 4.2.6 | 4.2.6 |
| web-token jwt-experimental | < 3.4.13 | — |
| web-token jwt-experimental | 3.4.13 | 3.4.13 |
| web-token jwt-experimental | >= 4.0.0, < 4.0.9 | — |
| web-token jwt-experimental | 4.0.9 | 4.0.9 |
| web-token jwt-experimental | >= 4.1.0, < 4.1.11 | — |
| web-token jwt-experimental | 4.1.11 | 4.1.11 |
| web-token jwt-experimental | >= 4.2.0, < 4.2.6 | — |
| web-token jwt-experimental | 4.2.6 | 4.2.6 |
| web-token jwt-encryption | < 1.2.0 | — |
| web-token jwt-encryption | 1.2.0 | 1.2.0 |
| web-token jwt-encryption-algorithm-aeskw | <= 3.2.10 | — |
| web-token jwt-encryption-algorithm-aesgcmkw | <= 3.2.10 | — |
| web-token jwt-encryption-algorithm-experimental | <= 3.2.10 | — |
Action recommended by the source
Upgrade to a fixed version: 1.2.0, 3.4.13, 4.0.9, 4.1.11, 4.2.6.
Fixed in: 1.2.0, 3.4.13, 4.0.9, 4.1.11, 4.2.6
Sources and references
- https://github.com/web-token/jwt-framework/security/advisories/GHSA-4mxj-75j2-j8hc — CVE Program
- https://www.vulncheck.com/advisories/web-token-jwt-framework-before-3.4.13-missing-key-length-check-in-aes-key-wrapping — CVE Program
Weaknesses (CWE): CWE-326
Relevant change history
Published
Preliminary advisory published.