{"id":"CVE-2016-5431","aliases":["EUVD-2022-5819","GHSA-xm5f-hc9r-76f3"],"status":"published","title":"PHP JOSE Library by Gree Inc. Uses a Broken or Risky Cryptographic Algorithm","description":"The PHP JOSE Library by Gree Inc. before version 2.2.1 is vulnerable to key confusion/algorithm substitution in the JWS component resulting in bypassing the signature verification via crafted tokens.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00955,"percentile":0.61651,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-327"],"published":"2019-08-07T15:13:47Z","modified":"2026-10-20T10:47:54Z","fixes":[{"ecosystem":"Packagist","package":"gree/jose","fixed_in":["2.2.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"gree/jose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.1"}]}]},{"source":"osv","ecosystem":"Packagist","package":"gree/jose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.1"}]}],"versions":["0.1.0","0.1.1","0.1.3","0.1.4","0.1.5","1.0.0","1.0.1","2.0.0","2.0.1","2.1.0","2.2.0"]}],"products":[{"vendor":"php_jose_project","product":"php_jose"}],"references":[{"url":"https://github.com/nov/jose-php/commit/1cce55e27adf0274193eb1cd74b927a398a3df4b","tags":["x_refsource_CONFIRM","x_transferred","Patch","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-5431","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-xm5f-hc9r-76f3"},{"url":"https://github.com/nov/jose-php","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2016-5431","description":"The PHP JOSE Library by Gree Inc. before version 2.2.1 is vulnerable to key confusion/algorithm substitution in the JWS component resulting in bypassing the signature verification via crafted tokens.","status":"published","published":"2019-08-07T15:13:47Z","modified":"2024-08-06T01:01:00.112Z","cwes":["CWE-327"],"updated_at":"2026-11-02T14:33:30.767029Z"}],"euvd":[{"id":"EUVD-2022-5819","description":"The PHP JOSE Library by Gree Inc. before version 2.2.1 is vulnerable to key confusion/algorithm substitution in the JWS component resulting in bypassing the signature verification via crafted tokens.","status":"published","published":"2019-08-07T15:13:47Z","modified":"2024-08-06T01:01:00Z","updated_at":"2026-11-03T02:22:42.442421Z"}],"ghsa":[{"id":"GHSA-xm5f-hc9r-76f3","title":"PHP JOSE Library by Gree Inc. Uses a Broken or Risky Cryptographic Algorithm","description":"The PHP JOSE Library by Gree Inc. prior to 2.2.1 is vulnerable to key confusion/algorithm substitution in the JWS component resulting in bypassing the signature verification via crafted tokens.","status":"published","published":"2022-05-24T16:52:44Z","modified":"2023-03-11T05:06:50Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-327"],"updated_at":"2026-11-02T14:36:47.279442Z"}],"nvd":[{"id":"CVE-2016-5431","description":"The PHP JOSE Library by Gree Inc. before version 2.2.1 is vulnerable to key confusion/algorithm substitution in the JWS component resulting in bypassing the signature verification via crafted tokens.","status":"published","published":"2019-08-07T15:15:11.783Z","modified":"2026-06-17T00:49:24.013Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-327"],"updated_at":"2026-11-02T14:03:40.524348Z"}],"osv":[{"id":"CVE-2016-5431","description":"The PHP JOSE Library by Gree Inc. before version 2.2.1 is vulnerable to key confusion/algorithm substitution in the JWS component resulting in bypassing the signature verification via crafted tokens.","status":"published","published":"2019-08-07T15:15:11.783Z","modified":"2026-10-20T10:47:54.250202776Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:02.776224Z"},{"id":"GHSA-xm5f-hc9r-76f3","title":"PHP JOSE Library by Gree Inc. Uses a Broken or Risky Cryptographic Algorithm","description":"The PHP JOSE Library by Gree Inc. prior to 2.2.1 is vulnerable to key confusion/algorithm substitution in the JWS component resulting in bypassing the signature verification via crafted tokens.","status":"published","published":"2022-05-24T16:52:44Z","modified":"2023-11-08T03:58:31.448438Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-327"],"updated_at":"2026-11-02T15:47:00.198893Z"}]}}
