CVE-2026-137562

web-token jwt-framework before 3.4.13 Missing Key Length Check in AES Key Wrapping

Published Nov 26, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Web-token
Web-token jwt-encryption
Web-token jwt-encryption-algorithm-aesgcmkw
Web-token jwt-encryption-algorithm-aeskw
Web-token jwt-encryption-algorithm-experimental
Web-token jwt-experimental
Web-token jwt-framework
Web-token jwt-library
Vendors & Products Web-token
Web-token jwt-encryption
Web-token jwt-encryption-algorithm-aesgcmkw
Web-token jwt-encryption-algorithm-aeskw
Web-token jwt-encryption-algorithm-experimental
Web-token jwt-experimental
Web-token jwt-framework
Web-token jwt-library
Type Values Removed Values Added
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.
Title web-token jwt-framework before 3.4.13 Missing Key Length Check in AES Key Wrapping
First Time appeared Nats
Nats jwt Library
Weaknesses CWE-326
CPEs cpe:2.3:a:nats:jwt_library:*:*:*:*:*:*:*:*
Vendors & Products Nats
Nats jwt Library
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}