Skip to main content

Jwt Library

4 CVEs product

Monthly

CVE-2026-134458 Nov 21, 16:32 HIGH PATCH This Week

JWE tokens produced with ECDH-ES (or the non-registered ECDH-SS) direct key agreement and A256CBC-HS512 in web-token/jwt-framework and web-token/jwt-library are effectively encrypted under an all-zero AES-256 key, so anyone who holds such a token can read its plaintext without the recipient's private key. The root cause is ConcatKDF::generate(), which performs a single SHA-256 round and can never return more than 32 bytes, leaving ENC_KEY empty for the 64-byte CEK that A256CBC-HS512 expects (PHP's OpenSSL extension zero-pads the short key); with A192CBC-HS384 the content key drops to 64-bit strength because only 8 of the 48 required bytes remain secret. The flaw is configuration-bounded: A128CBC-HS256, the AES-GCM modes, and all ECDH-ES+A*KW key-wrapping variants request 256 bits or less and are unaffected, so only deployments that selected one of the two oversized CBC-HMAC content algorithms with direct agreement are exposed; no public exploit was identified at time of analysis, and fixed releases are available at 3.4.12, 4.0.8, 4.1.10 and 4.2.4.

PHP Information Disclosure Jwt Library Jwt Framework Jwt Encryption Algorithm Ecdh Es
NVD GitHub
CVSS 4.0
8.2
EPSS
0.2%
CVE-2026-134459 Nov 21, 16:32 HIGH PATCH This Week

PHP applications using web-token/jwt-framework or its jwt-library component that register the RSA1_5 key-encryption algorithm for JWE decryption expose a Bleichenbacher/Marvin padding oracle: adaptively crafted encrypted_key values can be distinguished by timing between padding-rejected, padding-valid-but-wrong-CEK-length, and padding-valid-with-full-AEAD paths, allowing an unauthenticated remote attacker to recover the wrapped content encryption key through a high volume of adaptive queries and statistical timing analysis. Only deployments that enable RSA1_5 while holding the RSA private key are affected; RSA-OAEP/RSA-OAEP-256-only configurations are not. Fixed releases 3.4.10, 4.0.7 and 4.1.7 implement constant-time implicit rejection, and no public exploit code was identified at the time of analysis.

PHP Information Disclosure Oracle Jwt Library Jwt Framework
NVD GitHub
CVSS 4.0
8.2
EPSS
0.4%
CVE-2026-134461 Nov 21, 16:32 HIGH PATCH This Week

Unauthenticated remote attackers can exhaust server CPU in PHP applications using the web-token/jwt-framework or jwt-library packages by submitting a JWE that uses a PBES2-HS*+A*KW key-encryption algorithm with an oversized p2c (PBKDF2 iteration count) value in its JOSE protected header. PBES2AESKW::unwrapKey() passed that attacker-controlled value straight to hash_pbkdf2() with no upper bound, so a single token requesting 100,000,000 iterations can tie up a worker for roughly 87 seconds before the key unwrap even fails. Applications are exposed only if they register a PBES2-HS*+A*KW algorithm in their decryption AlgorithmManager and process untrusted JWEs; no public exploit code or confirmed active exploitation was identified at time of analysis, and the CVSS 4.0 score of 8.7 reflects high availability impact with no confidentiality or integrity effect.

Denial Of Service Jwt Library Jwt Framework
NVD GitHub
CVSS 4.0
8.7
EPSS
0.5%
CVE-2021-3127 Mar 16, 20:15 Go HIGH POC PATCH This Week

NATS Server 2.x before 2.2.0 and JWT library before 2.0.1 have Incorrect Access Control because Import Token bindings are mishandled. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.

Information Disclosure Nats Server Jwt Library Linuxfoundation Nats
NVD VulDB
CVSS 3.1
7.5
EPSS
0.3%
EPSS 0% CVSS 8.2
HIGH PATCH This Week

JWE tokens produced with ECDH-ES (or the non-registered ECDH-SS) direct key agreement and A256CBC-HS512 in web-token/jwt-framework and web-token/jwt-library are effectively encrypted under an all-zero AES-256 key, so anyone who holds such a token can read its plaintext without the recipient's private key. The root cause is ConcatKDF::generate(), which performs a single SHA-256 round and can never return more than 32 bytes, leaving ENC_KEY empty for the 64-byte CEK that A256CBC-HS512 expects (PHP's OpenSSL extension zero-pads the short key); with A192CBC-HS384 the content key drops to 64-bit strength because only 8 of the 48 required bytes remain secret. The flaw is configuration-bounded: A128CBC-HS256, the AES-GCM modes, and all ECDH-ES+A*KW key-wrapping variants request 256 bits or less and are unaffected, so only deployments that selected one of the two oversized CBC-HMAC content algorithms with direct agreement are exposed; no public exploit was identified at time of analysis, and fixed releases are available at 3.4.12, 4.0.8, 4.1.10 and 4.2.4.

PHP Information Disclosure Jwt Library +2
NVD GitHub
EPSS 0% CVSS 8.2
HIGH PATCH This Week

PHP applications using web-token/jwt-framework or its jwt-library component that register the RSA1_5 key-encryption algorithm for JWE decryption expose a Bleichenbacher/Marvin padding oracle: adaptively crafted encrypted_key values can be distinguished by timing between padding-rejected, padding-valid-but-wrong-CEK-length, and padding-valid-with-full-AEAD paths, allowing an unauthenticated remote attacker to recover the wrapped content encryption key through a high volume of adaptive queries and statistical timing analysis. Only deployments that enable RSA1_5 while holding the RSA private key are affected; RSA-OAEP/RSA-OAEP-256-only configurations are not. Fixed releases 3.4.10, 4.0.7 and 4.1.7 implement constant-time implicit rejection, and no public exploit code was identified at the time of analysis.

PHP Information Disclosure Oracle +2
NVD GitHub
EPSS 1% CVSS 8.7
HIGH PATCH This Week

Unauthenticated remote attackers can exhaust server CPU in PHP applications using the web-token/jwt-framework or jwt-library packages by submitting a JWE that uses a PBES2-HS*+A*KW key-encryption algorithm with an oversized p2c (PBKDF2 iteration count) value in its JOSE protected header. PBES2AESKW::unwrapKey() passed that attacker-controlled value straight to hash_pbkdf2() with no upper bound, so a single token requesting 100,000,000 iterations can tie up a worker for roughly 87 seconds before the key unwrap even fails. Applications are exposed only if they register a PBES2-HS*+A*KW algorithm in their decryption AlgorithmManager and process untrusted JWEs; no public exploit code or confirmed active exploitation was identified at time of analysis, and the CVSS 4.0 score of 8.7 reflects high availability impact with no confidentiality or integrity effect.

Denial Of Service Jwt Library Jwt Framework
NVD GitHub
EPSS 0% CVSS 7.5
HIGH POC PATCH This Week

NATS Server 2.x before 2.2.0 and JWT library before 2.0.1 have Incorrect Access Control because Import Token bindings are mishandled. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.

Information Disclosure Nats Server Jwt Library +2
NVD VulDB

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy