GHSA-5pj7-wx9m-cjh6: ECDH-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 the token can read it

unknown Affects web-token/jwt-encryption, web-token/jwt-encryption-algorithm-ecdh-es, web-token/jwt-framework, web-token/jwt-library. Feed 2026.11.29.3, updated 2026-11-29.

ECDH-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 the token can read it

Package
web-token/jwt-encryption Composer
Affected versions
<2.0.4
Fixed in
2.0.4
Severity
unknown
Exploitation
not on CISA KEV
Source
friendsofphp

References

ECDH-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 the token can read it

Package
web-token/jwt-encryption-algorithm-ecdh-es Composer
Affected versions
<=3.2.10
Fixed in
no fix recorded
Severity
unknown
Exploitation
not on CISA KEV
Source
friendsofphp

References

ECDH-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 the token can read it

Package
web-token/jwt-framework Composer
Affected versions
<3.4.12 or >=4.0.0 and <4.0.8 or >=4.1.0 and <4.1.10 or >=4.2.0 and <4.2.4
Fixed in
3.4.12, 4.0.8, 4.1.10, 4.2.4
Severity
unknown
Exploitation
not on CISA KEV
Source
friendsofphp

References

ECDH-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 the token can read it

Package
web-token/jwt-library Composer
Affected versions
<3.4.12 or >=4.0.0 and <4.0.8 or >=4.1.0 and <4.1.10 or >=4.2.0 and <4.2.4
Fixed in
3.4.12, 4.0.8, 4.1.10, 4.2.4
Severity
unknown
Exploitation
not on CISA KEV
Source
friendsofphp

References

NVD recordweb-token/jwt-encryption advisoriesweb-token/jwt-encryption-algorithm-ecdh-es advisoriesweb-token/jwt-framework advisoriesweb-token/jwt-library advisories

Quick answers

Is GHSA-5pj7-wx9m-cjh6 being actively exploited?

It is not on CISA's Known Exploited Vulnerabilities list today.

Which version fixes GHSA-5pj7-wx9m-cjh6?

web-token/jwt-encryption: 2.0.4; web-token/jwt-framework: 3.4.12, 4.0.8, 4.1.10.

How do I check whether I am affected?

Run `phpwarden deps composer.lock`. phpwarden checks the exact version you have installed against this advisory.

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

Related advisories