GHSA-hxhc-wmg8-xrqf namshi/jose insecure JSON Web Signatures (JWS)

Not scored Published

Attackers can bypass authentication and impersonate users if the library is configured to accept unsecure 'none' algorithm signatures.

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

What is GHSA-hxhc-wmg8-xrqf?

GHSA-hxhc-wmg8-xrqf is an authentication bypass vulnerability in namshi/jose, published on 17 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

namshi/jose allows the acceptance of unsecure JSON Web Signatures (JWS) by default. The vulnerability arises from the $allowUnsecure flag, which, when set to true during the loading of JWSes, permits tokens signed with 'none' algorithms to be processed. This behavior poses a significant security risk as it could allow an attacker to impersonate users by crafting a valid jwt token.

Which versions are affected by GHSA-hxhc-wmg8-xrqf?

8 open source packages ship an affected version, including namshi/jose.

PackageAffectedFixed in
namshi/jose PackagistAll versions1.1.2
namshi/jose PackagistAll versions1.1.2
namshi/jose PackagistFrom 1.2.01.2.2
namshi/jose PackagistFrom 1.2.01.2.2
namshi/jose PackagistFrom 2.0.02.0.3
namshi/jose PackagistFrom 2.0.02.0.3
2 more packages
namshi/jose PackagistFrom 2.1.02.1.2
namshi/jose PackagistFrom 2.1.02.1.2

How do I fix GHSA-hxhc-wmg8-xrqf?

Upgrade namshi/jose to a fixed version for your release line: 1.1.2, 1.2.2, 2.0.3 or 2.1.2.

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

Is GHSA-hxhc-wmg8-xrqf being exploited?

There is no known exploitation of GHSA-hxhc-wmg8-xrqf in the wild and no public exploit code.

Sources

Is GHSA-hxhc-wmg8-xrqf in your software?

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

Check your SBOMs for free