web-token/jwt-library · PHP JWT Library: RSA1_5 (RSAES-PKCS1-v1_5) decryption lacks implicit rejection, exposing a Bleichenbacher/Marvin padding oracle
Affects web-token/jwt-librarySource GCVE Database
CVSS 6.3 Medium : upgrade to 3.4.10 when convenient.
Data as of 9 Sep 2026, 12:07 UTC
- Patch
- Available – fixed in 3.4.10, 4.0.7, 4.1.7
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NWhat to do
Upgrade web-token/jwt-library to 3.4.10; web-token/jwt-library to 4.0.7; web-token/jwt-library to 4.1.7.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistweb-token/jwt-library | Affected
| Fixed in
|
| Packagistweb-token/jwt-library | Affected
| Fixed in
|
| Packagistweb-token/jwt-library | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available that implements the required implicit rejection countermeasure in constant time, neutralizing the Bleichenbacher padding oracle. Users should apply this patch to versions prior to 3.4.10, 4.0.0 up to but not including 4.0.7, and 4.1.0 up to but not including 4.1.7. Additionally, users are strongly advised to migrate to RSA-OAEP or RSA-OAEP-256 algorithms and avoid enabling RSA1_5 for untrusted tokens.
Description
The PHP JWT Library's RSA1_5 decryption implementation lacks the required implicit rejection countermeasure for RSAES-PKCS1-v1_5 padding, enabling a Bleichenbacher/Marvin padding oracle attack. This allows attackers to distinguish padding errors through timing side channels and potentially recover the wrapped content encryption key (CEK). The vulnerability affects applications using RSA1_5 with an RSA private key. A patch is available that implements constant-time implicit rejection, neutralizing the oracle. Users are advised to migrate to RSA-OAEP algorithms and avoid enabling RSA1_5 for untrusted tokens.