{"id":"GHSA-hxhc-wmg8-xrqf","aliases":[],"status":"published","title":"namshi/jose insecure JSON Web Signatures (JWS)","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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2024-05-17T22:31:42Z","modified":"2024-12-02T05:44:05Z","fixes":[{"ecosystem":"Packagist","package":"namshi/jose","fixed_in":["1.1.2","1.2.2","2.0.3","2.1.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"namshi/jose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.2"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"namshi/jose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.2.0"},{"fixed":"1.2.2"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"namshi/jose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.0.3"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"namshi/jose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.1.0"},{"fixed":"2.1.2"}]}]},{"source":"osv","ecosystem":"Packagist","package":"namshi/jose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.2"}]}],"versions":["1.0.0","1.0.0-beta1","1.0.0-rc1","1.0.1","1.0.2","1.1.0","1.1.1"]},{"source":"osv","ecosystem":"Packagist","package":"namshi/jose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.2.0"},{"fixed":"1.2.2"}]}],"versions":["1.2.0","1.2.1"]},{"source":"osv","ecosystem":"Packagist","package":"namshi/jose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.0.3"}]}],"versions":["2.0.0","2.0.1","2.0.2"]},{"source":"osv","ecosystem":"Packagist","package":"namshi/jose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.1.0"},{"fixed":"2.1.2"}]}],"versions":["2.1.0","2.1.1"]}],"references":[{"url":"https://github.com/namshi/jose/commit/009f86d6ced000b806b2f602c0b7393060ebb34e","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/namshi/jose/2015-02-19.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-hxhc-wmg8-xrqf"},{"url":"https://github.com/namshi/jose","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-hxhc-wmg8-xrqf","title":"namshi/jose insecure JSON Web Signatures (JWS)","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.","status":"published","published":"2024-05-17T22:31:42Z","modified":"2024-05-17T22:31:42Z","updated_at":"2026-11-02T14:37:49.987036Z"}],"osv":[{"id":"GHSA-hxhc-wmg8-xrqf","title":"namshi/jose insecure JSON Web Signatures (JWS)","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.","status":"published","published":"2024-05-17T22:31:42Z","modified":"2024-12-02T05:44:05.646157Z","updated_at":"2026-11-02T15:46:49.621585Z"}]}}
