{"id":"GHSA-hxhc-wmg8-xrqf","aliases":[],"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.","severity":"high","score":null,"published":"2024-05-17T22:31:42.000Z","modified":"2024-12-02T05:44:05.646Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"namshi/jose","ranges":[{"events":[{"introduced":"0"},{"fixed":"1.1.2"}],"type":"ECOSYSTEM"}],"versions":["1.0.0","1.0.0-beta1","1.0.0-rc1","1.0.1","1.0.2","1.1.0","1.1.1"],"fixed":["1.1.2"]},{"ecosystem":"Packagist","name":"namshi/jose","ranges":[{"events":[{"introduced":"1.2.0"},{"fixed":"1.2.2"}],"type":"ECOSYSTEM"}],"versions":["1.2.0","1.2.1"],"fixed":["1.2.2"]},{"ecosystem":"Packagist","name":"namshi/jose","ranges":[{"events":[{"introduced":"2.0.0"},{"fixed":"2.0.3"}],"type":"ECOSYSTEM"}],"versions":["2.0.0","2.0.1","2.0.2"],"fixed":["2.0.3"]},{"ecosystem":"Packagist","name":"namshi/jose","ranges":[{"events":[{"introduced":"2.1.0"},{"fixed":"2.1.2"}],"type":"ECOSYSTEM"}],"versions":["2.1.0","2.1.1"],"fixed":["2.1.2"]}],"sourceAffected":[],"references":["https://github.com/namshi/jose/commit/009f86d6ced000b806b2f602c0b7393060ebb34e","https://github.com/FriendsOfPHP/security-advisories/blob/master/namshi/jose/2015-02-19.yaml","https://github.com/namshi/jose"],"sources":[{"name":"OSV","id":"GHSA-hxhc-wmg8-xrqf","modified":"2024-12-02T05:44:05.646157Z","url":"https://osv.dev/vulnerability/GHSA-hxhc-wmg8-xrqf"}],"assessments":[]}