GHSA-9gxv-x7rp-r2hc: gree/jose - "None" Algorithm treated as valid in tokens
Several widely-used JSON Web Token (JWT) libraries, including node-jsonwebtoken, pyjwt, namshi/jose, php-jwt, and jsjwt, are affected by critical vulnerabilities that could allow attackers to bypass the verification step when using asymmetric keys (RS256, RS384, RS512, ES256, ES384, ES512).
Published May 15, 2024 · Updated Jul 16, 2026
Affected packages
gree/jose
- Ecosystem
- Composer (PHP)
- Affected
- < 2.2.1
- Fixed in
- 2.2.1
- Check
composer show gree/jose
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Several widely-used JSON Web Token (JWT) libraries, including node-jsonwebtoken, pyjwt, namshi/jose, php-jwt, and jsjwt, are affected by critical vulnerabilities that could allow attackers to bypass the verification step when using asymmetric keys (RS256, RS384, RS512, ES256, ES384, ES512).
Credited to RainSignal.
References
- https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries
- https://auth0.com/blog/critical-vulnerabilities-in-json-web-token-libraries
- https://github.com/FriendsOfPHP/security-advisories/blob/master/gree/jose/2016-08-30.yaml
- https://github.com/nov/jose-php/compare/2.2.0...2.2.1
- https://github.com/advisories/GHSA-9gxv-x7rp-r2hc
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
