{"id":"GHSA-hxhc-wmg8-xrqf","aliases":["GHSA-hxhc-wmg8-xrqf"],"related":[],"kind":"vulnerability","state":"published","title":"namshi/jose insecure JSON Web Signatures (JWS)","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2024-05-17T22:31:42.000Z","modified":"2024-12-02T05:44:05.646Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.1.2"}],"ecosystem":"Packagist","package":"namshi/jose","purl":"pkg:composer/namshi/jose","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.2.0","status":"affected","fixed":"1.2.2"}],"ecosystem":"Packagist","package":"namshi/jose","purl":"pkg:composer/namshi/jose","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.3"}],"ecosystem":"Packagist","package":"namshi/jose","purl":"pkg:composer/namshi/jose","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.2"}],"ecosystem":"Packagist","package":"namshi/jose","purl":"pkg:composer/namshi/jose","source":"ghsa"}],"references":[{"url":"https://github.com/namshi/jose/commit/009f86d6ced000b806b2f602c0b7393060ebb34e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/namshi/jose/2015-02-19.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/namshi/jose","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hxhc-wmg8-xrqf","url":"https://github.com/advisories/GHSA-hxhc-wmg8-xrqf","licence":"CC-BY-4.0","modified":"2024-12-02T05:44:05.646Z"}],"updatedAt":"2026-11-25T22:56:32.352Z"}