Description
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 (and jwt-encryption through 3.2.10) do not check the key length in JWEBuilder and JWEDecrypter for direct (dir) encryption, so undersized keys are zero-padded. Anyone holding a token issued with a half-size AES-CBC-HMAC key can decrypt it, and an empty key also allows forging tokens the decrypter accepts.
Published: 2026-11-26
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No solution or workaround provided in the CVE record.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 27 Nov 2026 22:00:00 +0000

Type Values Removed Values Added
First Time appeared Web-token
Web-token jwt-encryption
Web-token jwt-framework
Web-token jwt-library
Vendors & Products Web-token
Web-token jwt-encryption
Web-token jwt-framework
Web-token jwt-library

Fri, 27 Nov 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 26 Nov 2026 16:15:00 +0000

Type Values Removed Values Added
Description 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 (and jwt-encryption through 3.2.10) do not check the key length in JWEBuilder and JWEDecrypter for direct (dir) encryption, so undersized keys are zero-padded. Anyone holding a token issued with a half-size AES-CBC-HMAC key can decrypt it, and an empty key also allows forging tokens the decrypter accepts.
Title web-token jwt-framework before 3.4.13 Missing Key Size Check in Direct Encryption
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': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

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


Subscriptions

Nats Jwt Library
Web-token Jwt-encryption Jwt-framework Jwt-library
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-27T16:31:29.951Z

Reserved: 2026-11-26T12:48:59.163Z

Link: CVE-2026-137564

cve-icon Vulnrichment

Updated: 2026-11-27T15:50:18.982Z

cve-icon NVD

Status : Received

Published: 2026-11-26T16:18:10.920

Modified: 2026-11-27T17:17:54.403

Link: CVE-2026-137564

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-27T21:30:38Z

Weaknesses