CriticalGHSA-h533-5v22-8vcp
firebase/php-jwt: "None" Algorithm treated as valid on tokens
Published 15 May 2024 · Updated 29 Nov 2024
Affected package
firebase/php-jwtComposer
- Affected
- <2.0.0
- Fixed in
- 2.0.0
Update to the fixed version for your release line, for example:
composer require firebase/php-jwt:^2.0.0Details
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).
Is GHSA-h533-5v22-8vcp in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected firebase/php-jwt, and gives you the command that fixes it.
References
- Linkgithub.com/firebase/php-jwt/commit/b2c2be6a45fda769c8c2ffe5ec4259a9d1e46e5b
- Linkauth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries
- Linkauth0.com/blog/critical-vulnerabilities-in-json-web-token-libraries
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/firebase/php-jwt/2015-04-02.yaml
- Packagegithub.com/firebase/php-jwt
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.