GHSA-h533-5v22-8vcp: firebase/php-jwt "None" Algorithm Treated As Valid Vulnerability
CRITICALGHSA-h533-5v22-8vcp is a CRITICAL "none" algorithm treated as valid vulnerability (General Security Weakness) affecting firebase/php-jwt libraries in the Packagist ecosystem. The issue involves "none" algorithm treated as valid on tokens. Remediation is available by upgrading affected packages to version 2.0.0.
GHSA-h533-5v22-8vcp at a Glance
How to Fix GHSA-h533-5v22-8vcp
To remediate this vulnerability, upgrade all affected firebase/php-jwt dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade firebase/php-jwt to 2.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for firebase/php-jwt
How to Check if You Are Affected
To determine whether your application is affected by GHSA-h533-5v22-8vcp, inspect your project dependencies for firebase/php-jwt:
inspect dependencies for firebase/php-jwt
Analyze the terminal output to locate any version of firebase/php-jwt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In firebase/php-jwt, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-h533-5v22-8vcp Affected firebase/php-jwt Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
firebase/php-jwt
|
Packagist |
< 2.0.0
|
2.0.0
|
References
Frequently Asked Questions
What is GHSA-h533-5v22-8vcp?
Which firebase/php-jwt versions are affected?
What version fixes GHSA-h533-5v22-8vcp?
Is firebase/php-jwt affected?
What CWE is associated with GHSA-h533-5v22-8vcp?
How can I check Packagist dependencies for GHSA-h533-5v22-8vcp?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h533-5v22-8vcp",
"modified" : "2024-05-15T21:38:49Z",
"published" : "2024-05-15T21:38:49Z",
"aliases" : [ ],
"summary" : "firebase/php-jwt: \"None\" Algorithm treated as valid on tokens",
"details" : "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).",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "firebase/php-jwt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/firebase/php-jwt/commit/b2c2be6a45fda769c8c2ffe5ec4259a9d1e46e5b"
}, {
"type" : "WEB",
"url" : "https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries"
}, {
"type" : "WEB",
"url" : "https://auth0.com/blog/critical-vulnerabilities-in-json-web-token-libraries"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/firebase/php-jwt/2015-04-02.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/firebase/php-jwt"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-15T21:38:49Z",
"nvd_published_at" : null
}
}