GHSA-9gxv-x7rp-r2hc gree/jose - "None" Algorithm treated as valid in tokens

Not scored Published

Attackers can bypass JWT verification 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-9gxv-x7rp-r2hc?

GHSA-9gxv-x7rp-r2hc is an authentication bypass vulnerability in gree/jose, 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-9gxv-x7rp-r2hc?

2 open source packages ship an affected version, including gree/jose.

PackageAffectedFixed in
gree/jose PackagistAll versions2.2.1
gree/jose PackagistAll versions2.2.1

How do I fix GHSA-9gxv-x7rp-r2hc?

Upgrade gree/jose to 2.2.1 or later.

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

Is GHSA-9gxv-x7rp-r2hc being exploited?

There is no known exploitation of GHSA-9gxv-x7rp-r2hc in the wild and no public exploit code.

Sources

Is GHSA-9gxv-x7rp-r2hc in your software?

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

Check your SBOMs for free