GHSA-4mxj-75j2-j8hc: AES 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 all-zero key

unknown Affects web-token/jwt-encryption, web-token/jwt-encryption-algorithm-aesgcmkw, web-token/jwt-encryption-algorithm-aeskw, web-token/jwt-encryption-algorithm-experimental, web-token/jwt-experimental, web-token/jwt-framework and 1 more. Feed 2026.11.29.3, updated 2026-11-29.

AES 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 all-zero key

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

References

AES 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 all-zero key

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

References

AES 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 all-zero key

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

References

AES 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 all-zero key

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

References

AES 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 all-zero key

Package
web-token/jwt-experimental Composer
Affected versions
<3.4.13 or >=4.0.0 and <4.0.9 or >=4.1.0 and <4.1.11 or >=4.2.0 and <4.2.6
Fixed in
3.4.13, 4.0.9, 4.1.11, 4.2.6
Severity
unknown
Exploitation
not on CISA KEV
Source
friendsofphp

References

AES 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 all-zero key

Package
web-token/jwt-framework Composer
Affected versions
<3.4.13 or >=4.0.0 and <4.0.9 or >=4.1.0 and <4.1.11 or >=4.2.0 and <4.2.6
Fixed in
3.4.13, 4.0.9, 4.1.11, 4.2.6
Severity
unknown
Exploitation
not on CISA KEV
Source
friendsofphp

References

AES 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 all-zero key

Package
web-token/jwt-library Composer
Affected versions
<3.4.13 or >=4.0.0 and <4.0.9 or >=4.1.0 and <4.1.11 or >=4.2.0 and <4.2.6
Fixed in
3.4.13, 4.0.9, 4.1.11, 4.2.6
Severity
unknown
Exploitation
not on CISA KEV
Source
friendsofphp

References

NVD recordweb-token/jwt-encryption advisoriesweb-token/jwt-encryption-algorithm-aesgcmkw advisoriesweb-token/jwt-encryption-algorithm-aeskw advisoriesweb-token/jwt-encryption-algorithm-experimental advisoriesweb-token/jwt-experimental advisoriesweb-token/jwt-framework advisories

Quick answers

Is GHSA-4mxj-75j2-j8hc being actively exploited?

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

Which version fixes GHSA-4mxj-75j2-j8hc?

web-token/jwt-encryption: 1.2.0.

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