GitHub Advisoryadvisory · Packagist

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

HIGH Published 2024-05-17 Modified 2024-05-17 Official page ↗
Ecosystem
Packagist
Packages
namshi/jose
Severity
High
Reviewed
2024-05-17

Affected packages

• Packagist namshi/jose: < 1.1.2 → fixed in 1.1.2 • Packagist namshi/jose: >= 1.2.0, < 1.2.2 → fixed in 1.2.2 • Packagist namshi/jose: >= 2.0.0, < 2.0.3 → fixed in 2.0.3 • Packagist namshi/jose: >= 2.1.0, < 2.1.2 → fixed in 2.1.2

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.

References