web-token/jwt-encryption: is it safe?

Short answer: Every vulnerability listed here affects version 3.2.10 or earlier. Versions after 3.2.10 are not known to be affected.

Composer web-token/jwt-encryption has 9 known advisories in the phpwarden feed. Feed 2026.11.29.3, updated 2026-11-29.

9advisories
0critical
0on CISA KEV
4no fix recorded
CVETitleSeverityCVSSAffectedFixed in
GHSA-2xq2-pp89-x7frJWS and JWE serializers decode attacker-controlled JSON without bounds before verification (CPU and memory denial of service)unknown0.0<=3.2.10–
GHSA-3vqw-452c-g726JWE and JWS loaders try every recipient or signature of a token, so a small token multiplies the PBES2 iteration cap (denial of service)unknown0.0>=0.5.0 and <=3.2.10–
GHSA-4mxj-75j2-j8hcAES key wrapping accepts oct keys shorter than the algorithm key size and pads them with zero bytes: an empty key wraps every CEK under an aunknown0.0<1.2.01.2.0
GHSA-5cc5-v8qv-6cw7dir, ECDH-ES and ECDH-SS accept a non-empty JWE Encrypted Key, so token strings are malleableunknown0.0<=3.2.10–
GHSA-5pj7-wx9m-cjh6ECDH-ES derives at most 256 bits of key material: with A256CBC-HS512 the content is encrypted under an all-zero AES key and anyone holding tunknown0.0<2.0.42.0.4
GHSA-96f8-m4jr-72xjRSA keys of any size are accepted: a key chosen by the sender of a token costs seconds of CPU per operation (RSA-PSS and RSA encryption, andunknown0.0<2.0.42.0.4
GHSA-j265-mg9q-wpv9AES-GCM decryption accepts any authentication tag length: a holder of one valid JWE can brute force a 1-byte tag in at most 256 requests andunknown0.0<1.2.01.2.0
GHSA-jc6j-46g2-xwqcDirect encryption (dir) does not check the key size: with a key of half the required size, AES-CBC-HMAC content is encrypted under an all-zeunknown0.0<=3.2.10–
GHSA-wwcr-82mc-w3pwRSA-OAEP accepts an encrypted key made of several RSA blocks, enabling recovery of another JWE's content encryption key through a decryptionunknown0.0<2.0.42.0.4

Quick answers

Is web-token/jwt-encryption safe to use?

Every vulnerability listed here affects version 3.2.10 or earlier. Versions after 3.2.10 are not known to be affected.

Is web-token/jwt-encryption being actively exploited?

None of its 9 known vulnerabilities are on CISA's Known Exploited Vulnerabilities list today.

How do I check my own site?

Run `phpwarden deps composer.lock`. phpwarden compares the exact version you have installed with these advisories and lists only the ones that apply, exploited ones first.

Am I affected?

Find out in one command. phpwarden checks your composer.lock against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden deps composer.lock

# or, without Composer
pipx install phpwarden   &&   phpwarden deps composer.lock

Or keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command

Install docs   How findings are ranked
A version is vulnerable when it falls inside an affected range and below the fixed version. phpwarden applies these ranges to the exact versions in your lockfile or install, so you only see what applies to you.

Add this status to your README

phpwarden status badge

Maintainer of this package? The badge updates itself whenever the feed is rebuilt (twice a day). Add ?v=1.2.3 to the image address to show the status of one exact version.

[![phpwarden](https://phpwarden.io/badge/web-token/jwt-encryption.svg)](https://phpwarden.io/packages/web-token/jwt-encryption)