web-token jwt-framework before 3.4.13 Missing Key Length Check in AES Key Wrapping
- State
- Published
- Severity
- 6.3 Medium
- Published
- Nov 26, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 26, 2026
Description
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.
| Product | Versions |
|---|---|
| jwt-library web-token | before 3.4.13 Affected3.4.13 Not Affected4.0.0 to before 4.0.9 Affected4.0.9 Not Affected4.1.0 to before 4.1.11 Affected4.1.11 Not Affected4.2.0 to before 4.2.6 Affected4.2.6 Not Affected |
| jwt-framework web-token | before 3.4.13 Affected3.4.13 Not Affected4.0.0 to before 4.0.9 Affected4.0.9 Not Affected4.1.0 to before 4.1.11 Affected4.1.11 Not Affected4.2.0 to before 4.2.6 Affected4.2.6 Not Affected |
| jwt-experimental web-token | before 3.4.13 Affected3.4.13 Not Affected4.0.0 to before 4.0.9 Affected4.0.9 Not Affected4.1.0 to before 4.1.11 Affected4.1.11 Not Affected4.2.0 to before 4.2.6 Affected4.2.6 Not Affected |
| jwt-encryption web-token | before 1.2.0 Affected1.2.0 Not Affected |
| jwt-encryption-algorithm-aeskw web-token | 3.2.10 and earlier Affected |
| jwt-encryption-algorithm-aesgcmkw web-token | 3.2.10 and earlier Affected |
| jwt-encryption-algorithm-experimental web-token | 3.2.10 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.3 Medium | VulnCheck | |
| 3.1 | 4.8 Medium | VulnCheck |
Weaknesses
- CWE-326 Inadequate Encryption Strength
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.