CVE-2026-137564: web-token jwt-framework before 3.4.13 Missing Key Size Check in Direct Encryption

Published Nov 26, 2026
·
Updated

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.

Affected Software

3 affected components
composer/web-token/jwt-framework<3.4.13, >=4.0.0<4.0.9, >=4.1.0<4.1.11, >=4.2.0<4.2.6
composer/web-token/jwt-library<3.4.13, >=4.0.0<4.0.9, >=4.1.0<4.1.11, >=4.2.0<4.2.6
composer/web-token/jwt-encryption<=3.2.10

Event History

Nov 26, 2026
CVE Published
via MITRE·03:59 PM
Data Sourced
via MITRE·03:59 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:18 PM
DescriptionSeverityWeakness
Event
via NVD·04:18 PM

Frequently Asked Questions

1

Which deployments are exposed to token disclosure or forgery?

Deployments using direct (dir) JWE encryption with an undersized AES-CBC-HMAC key are exposed to decryption of tokens issued with a half-size key. Deployments whose decrypter accepts an empty key are exposed to token forgery.

2

What does an attacker need to exploit the issue?

To decrypt affected tokens, an attacker needs possession of a token issued using a half-size AES-CBC-HMAC key. Forgery is possible when the decrypter accepts an empty key; the advisory does not state any additional authentication or user-interaction requirement.

3

Which versions contain the fix?

The issue is fixed in jwt-framework 3.4.13, jwt-library 4.0.9, 4.1.11, and 4.2.6. The affected jwt-encryption range is through 3.2.10; no fixed jwt-encryption version is provided in the available data.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203