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

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-05-17T22:31:42.000Z
- Modified: 2024-12-02T05:44:05.646Z

## 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.

(As written by GitHub Advisory Database.)

## Affected

- namshi/jose (Packagist): before 1.1.2; from 1.2.0 before 1.2.2; from 2.0.0 before 2.0.3; from 2.1.0 before 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)

## Sources

- GitHub Advisory Database: [GHSA-hxhc-wmg8-xrqf](https://github.com/advisories/GHSA-hxhc-wmg8-xrqf), CC-BY-4.0, modified 2024-12-02

---

Page: https://cve.day/GHSA-hxhc-wmg8-xrqf · Whole record: https://cve.day/GHSA-hxhc-wmg8-xrqf.json · Rebuilt by cve.day 2026-11-25T22:56:32.352Z
