NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

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

high

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.

Published May 17, 2024

Affected packages

namshi/jose

Ecosystem
Composer (PHP)
Affected
< 1.1.2
Fixed in
1.1.2
Check
composer show namshi/jose

namshi/jose

Ecosystem
Composer (PHP)
Affected
>= 1.2.0, < 1.2.2
Fixed in
1.2.2
Check
composer show namshi/jose

namshi/jose

Ecosystem
Composer (PHP)
Affected
>= 2.0.0, < 2.0.3
Fixed in
2.0.3
Check
composer show namshi/jose

namshi/jose

Ecosystem
Composer (PHP)
Affected
>= 2.1.0, < 2.1.2
Fixed in
2.1.2
Check
composer show namshi/jose

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries