CVE-2026-137564 PUBLISHED

web-token jwt-framework before 3.4.13 Missing Key Size Check in Direct Encryption

Assigner: VulnCheck
Reserved: 26.11.2026 Published: 26.11.2026 Updated: 26.11.2026

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

CVSS 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
CVSS Score: 8.2

Product Status

Vendor web-token
Product jwt-library
Versions Default: unaffected
  • affected from 0 to 3.4.13 (excl.)
  • Version 3.4.13 is unaffected
  • affected from 4.0.0 to 4.0.9 (excl.)
  • Version 4.0.9 is unaffected
  • affected from 4.1.0 to 4.1.11 (excl.)
  • Version 4.1.11 is unaffected
  • affected from 4.2.0 to 4.2.6 (excl.)
  • Version 4.2.6 is unaffected
Vendor web-token
Product jwt-framework
Versions Default: unaffected
  • affected from 0 to 3.4.13 (excl.)
  • Version 3.4.13 is unaffected
  • affected from 4.0.0 to 4.0.9 (excl.)
  • Version 4.0.9 is unaffected
  • affected from 4.1.0 to 4.1.11 (excl.)
  • Version 4.1.11 is unaffected
  • affected from 4.2.0 to 4.2.6 (excl.)
  • Version 4.2.6 is unaffected
Vendor web-token
Product jwt-encryption
Versions Default: unaffected
  • affected from 0 to 3.2.10 (incl.)

References

Problem Types

  • Inadequate Encryption Strength CWE