Skip to content

web-token/jwt-encryption

Follow this package

Get the evidence behind this dependency. Browse imported advisories below, or check an exact version against OSV now. View source coverage.

Check the version you ship.

Get a fresh OSV lookup for an exact release. We send the package name and version to OSV without storing a report.

Advisories & recorded fixes

medium6.3
CVE-2026-137558

web-token jwt-framework before 3.4.13 RSA-OAEP Multi-Block Decryption Oracle

web-token jwt-framework and jwt-library before 3.4.13, 4.0.0 before 4.0.9, 4.1.0 before 4.1.11, and 4.2.0 before 4.2.6 contain a decryption oracle in RSACrypt::decryptWithRSAOAEP(), which accepts a JWE Encrypted Key made of multiple RSA blocks instead of a single RSAES-OAEP ciphertext. Attackers holding the recipient's public key can embed a captured encrypted key among crafted blocks and, using an accepted AES-CBC-HMAC algorithm and a decryption success signal, recover its CEK byte by byte to decrypt the captured JWE.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

web-token · jwt-library / web-token · jwt-framework
high8.2
CVE-2026-137560

Web-token jwt-framework before 3.4.13 Denial of Service via Unbounded RSA Key Size

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 contain a denial of service vulnerability in RSAKey, which accepts RSA keys with a modulus and public exponent of unbounded length. Remote attackers can supply a crafted key, such as in the jwk header of a DPoP proof, to force seconds of CPU per PS256/PS384/PS512 verification or RSA encryption, or per any RSA operation when GMP is unavailable.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

web-token · jwt-library / web-token · jwt-framework
low3.1
CVE-2026-137561

Web-Token jwt-framework before 3.4.13 JWE Token Malleability via Non-Empty Encrypted Key

Web-Token jwt-framework and jwt-library before 3.4.13, 4.0.0 before 4.0.9, 4.1.0 before 4.1.11, and 4.2.0 before 4.2.6, and jwt-encryption through 3.2.10, contain a token malleability flaw because JWEDecrypter does not reject a non-empty JWE Encrypted Key with the dir, ECDH-ES and ECDH-SS algorithms, which the authentication tag does not cover. Attackers holding one token can fill the Encrypted Key with arbitrary bytes to derive unlimited distinct token strings that still decrypt, bypassing replay caches, single-use registries or revocation deny-lists keyed on the token string.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

web-token · jwt-library / web-token · jwt-framework
medium6.3
CVE-2026-137562

web-token jwt-framework before 3.4.13 Missing Key Length Check in AES Key Wrapping

web-token jwt-framework before 3.4.13, 4.0.0 before 4.0.9, 4.1.0 before 4.1.11, and 4.2.0 before 4.2.6 does not check oct key length in the AESKW, AESGCMKW, and experimental AESCTR and chacha20-poly1305 key encryption algorithms, so OpenSSL zero-pads short or empty keys. When an application uses an empty key, anyone can unwrap content encryption keys under the all-zero key to read issued tokens and forge accepted ones.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

web-token · jwt-library / web-token · jwt-framework
high8.2
CVE-2026-137564

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

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.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

web-token · jwt-library / web-token · jwt-framework
high8.2
CVE-2026-137581

web-token jwt-framework before 3.4.13 Denial of Service via Unbounded JSON Decoding

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 and jwt-signature through 3.2.10, contain a denial of service vulnerability because the JWS and JWE serializers pass attacker-controlled tokens and protected headers to json_decode() without bounds before verification. Unauthenticated attackers can submit large tokens with colliding header member names or deeply nested arrays to cause quadratic decoding time or fatal memory exhaustion.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

web-token · jwt-library / web-token · jwt-framework
high8.2
CVE-2026-137582

Web-token jwt-framework before 3.4.13 DoS via JWE/JWS Multiple Recipients

web-token jwt-framework 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 allows denial of service because JWELoader and JWSLoader try every recipient or signature of a JSON General serialized token without limiting their number. Unauthenticated attackers can send a small JWE with many empty recipients inheriting a maximal PBES2 p2c value, forcing repeated key derivations that exhaust worker CPU.

No structured fix or guidance is available here. Check the latest publisher advisory.

Exploitation not established

web-token · jwt-library / web-token · jwt-framework