{"id":"GHSA-hxhc-wmg8-xrqf","summary":"namshi/jose insecure JSON Web Signatures (JWS)","details":"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.","modified":"2024-12-02T05:44:05.646157Z","published":"2024-05-17T22:31:42Z","database_specific":{"nvd_published_at":null,"cwe_ids":[],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2024-05-17T22:31:42Z"},"references":[{"type":"WEB","url":"https://github.com/namshi/jose/commit/009f86d6ced000b806b2f602c0b7393060ebb34e"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/namshi/jose/2015-02-19.yaml"},{"type":"PACKAGE","url":"https://github.com/namshi/jose"}],"affected":[{"package":{"name":"namshi/jose","ecosystem":"Packagist","purl":"pkg:composer/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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-hxhc-wmg8-xrqf/GHSA-hxhc-wmg8-xrqf.json"}},{"package":{"name":"namshi/jose","ecosystem":"Packagist","purl":"pkg:composer/namshi/jose"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.2.0"},{"fixed":"1.2.2"}]}],"versions":["1.2.0","1.2.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-hxhc-wmg8-xrqf/GHSA-hxhc-wmg8-xrqf.json"}},{"package":{"name":"namshi/jose","ecosystem":"Packagist","purl":"pkg:composer/namshi/jose"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.0.3"}]}],"versions":["2.0.0","2.0.1","2.0.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-hxhc-wmg8-xrqf/GHSA-hxhc-wmg8-xrqf.json"}},{"package":{"name":"namshi/jose","ecosystem":"Packagist","purl":"pkg:composer/namshi/jose"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.1.0"},{"fixed":"2.1.2"}]}],"versions":["2.1.0","2.1.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-hxhc-wmg8-xrqf/GHSA-hxhc-wmg8-xrqf.json"}}],"schema_version":"1.9.0"}