gree/jose - "None" Algorithm treated as valid in tokens
Impact
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).
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 2.2.1Ecosystem versions | 2.2.1 |
Version evidence: OSV · GHSA-9gxv-x7rp-r2hc
View original version evidence (11 explicit versions)
Original source description
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).
References
- Security advisory auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries
- Security advisory auth0.com/blog/critical-vulnerabilities-in-json-web-token-libraries
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/gree/jose/2016-08-30.yaml
- Source reference github.com/nov/jose-php
- Source reference github.com/nov/jose-php/compare/2.2.0...2.2.1