CVE-2026-137564

MEDIUMCVSS 5.9/10

Last modified

CVE-2026-137564 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. 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..

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.

Metrics

Weakness Enumeration

Affected Software

Source: CNA advisory (CVE.org). NVD analysis pending.

VendorProductVersions
web-tokenjwt-library< 3.4.13; >= 4.0.0, < 4.0.9; >= 4.1.0, < 4.1.11; >= 4.2.0, < 4.2.6
web-tokenjwt-framework< 3.4.13; >= 4.0.0, < 4.0.9; >= 4.1.0, < 4.1.11; >= 4.2.0, < 4.2.6
web-tokenjwt-encryption<= 3.2.10

References

Timeline

Published
Last Modified
Status
Received

Frequently Asked Questions

What is CVE-2026-137564?
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.
How severe is CVE-2026-137564?
CVE-2026-137564 has a CVSS score of 5.9/10 (MEDIUM severity).
How do I fix CVE-2026-137564?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2026

Are you affected by CVE-2026-137564?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST