Skip to content
OpenAdvisories
High GHSA-hxhc-wmg8-xrqf

namshi/jose insecure JSON Web Signatures (JWS)

Published May 17, 2024 · Updated Dec 2, 2024 · Assigned by GHSA

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.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist namshi/jose < 1.1.2 1.1.2 GHSA-hxhc-wmg8-xrqf
Packagist namshi/jose >= 1.2.0, < 1.2.2 1.2.2 GHSA-hxhc-wmg8-xrqf
Packagist namshi/jose >= 2.0.0, < 2.0.3 2.0.3 GHSA-hxhc-wmg8-xrqf
Packagist namshi/jose >= 2.1.0, < 2.1.2 2.1.2 GHSA-hxhc-wmg8-xrqf

References