GHSA-h533-5v22-8vcp firebase/php-jwt: "None" Algorithm treated as valid on tokens

Not scored Published

Attackers can bypass JWT verification by using the 'None' algorithm, allowing unauthorized access to protected resources.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-h533-5v22-8vcp?

GHSA-h533-5v22-8vcp is an authentication bypass vulnerability in firebase/php-jwt, published on 15 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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).

Which versions are affected by GHSA-h533-5v22-8vcp?

2 open source packages ship an affected version, including firebase/php-jwt.

PackageAffectedFixed in
firebase/php-jwt PackagistAll versions2.0.0
firebase/php-jwt PackagistAll versions2.0.0

How do I fix GHSA-h533-5v22-8vcp?

Upgrade firebase/php-jwt to 2.0.0 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is GHSA-h533-5v22-8vcp being exploited?

There is no known exploitation of GHSA-h533-5v22-8vcp in the wild and no public exploit code.

Sources

Is GHSA-h533-5v22-8vcp in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free