All vulnerabilities

Packagist

CVE-2026-137564

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

Severity
High 8.2
Published
26 Nov 2026
Last changed
27 Nov 2026
Added to UpHeron
26 Nov 2026
Fixed in
3.4.13, 4.0.9, 4.1.11, 4.2.6
Exploit chance
0.1% in the next 30 daysEPSS by FIRST, 29 Nov 2026
Weakness
Inadequate encryption strength (CWE-326)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read data
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
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
web-token/jwt-encryptionPackagist · osv:Packagist:web-token/jwt-encryption
  • Every version up to 3.2.10
web-token/jwt-frameworkPackagist · osv:Packagist:web-token/jwt-framework
  • Every version before 3.4.13
  • From 4.0.0 before 4.0.9
  • From 4.1.0 before 4.1.11
  • From 4.2.0 before 4.2.6
web-token/jwt-libraryPackagist · osv:Packagist:web-token/jwt-library
  • Every version before 3.4.13
  • From 4.0.0 before 4.0.9
  • From 4.1.0 before 4.1.11
  • From 4.2.0 before 4.2.6

Status in Debian

Debian builds fixes into its own packages, so a release is often fixed under an older version number than the one upstream names.

  • 2 fixed
PackageDebian releaseStatus
php-web-token-jwt-frameworksidunstableFixed in 4.2.7-1
14forkytestingFixed in 4.2.7-1

From Debian's security tracker for CVE-2026-137564 , read in the last 12 hours.

About web-token/jwt-encryption

Monthly downloads (Packagist)
85,596Packagist, 26 Nov 2026
Total downloads (Packagist)
6,937,541Packagist, 26 Nov 2026

About web-token/jwt-framework

Monthly downloads (Packagist)
942,041Packagist, 26 Nov 2026
Total downloads (Packagist)
24,290,580Packagist, 26 Nov 2026

About web-token/jwt-library

Monthly downloads (Packagist)
5,313,648Packagist, 26 Nov 2026
Total downloads (Packagist)
31,471,084Packagist, 26 Nov 2026

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-137564