GHSA-hxhc-wmg8-xrqf
HIGHnamshi/jose insecure JSON Web Signatures (JWS)
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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | namshi/jose | < 1.1.2 | 1.1.2 |
| OSV | Packagist | namshi/jose | >= 1.2.0, < 1.2.2 | 1.2.2 |
| OSV | Packagist | namshi/jose | >= 2.0.0, < 2.0.3 | 2.0.3 |
| OSV | Packagist | namshi/jose | >= 2.1.0, < 2.1.2 | 2.1.2 |
References
- https://github.com/namshi/jose/commit/009f86d6ced000b806b2f602c0b7393060ebb34e · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/namshi/jose/2015-02-19.yaml · WEB
- https://github.com/namshi/jose · PACKAGE
History
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 17 May 2024)