{"id":"CVE-2023-31580","aliases":["EUVD-2023-2786","GHSA-mx47-h5fv-ghwh"],"status":"published","title":"light-oauth2 missing public key verification","description":"light-oauth2 before version 2.1.27 obtains the public key without any verification. This could allow attackers to authenticate to the application with a crafted JWT token.","severity":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.00686,"percentile":0.53095,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-295","CWE-347"],"published":"2023-10-24T00:00:00Z","modified":"2026-06-17T05:57:11Z","fixes":[{"ecosystem":"Maven","package":"com.networknt:light-oauth2","fixed_in":["2.1.27"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"com.networknt:light-oauth2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.27"}]}]},{"source":"osv","ecosystem":"Maven","package":"com.networknt:light-oauth2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.27"}]}],"versions":["1.2.4","1.3.1","1.3.4","1.3.5","1.4.0","1.5.4","2.1.0","2.1.1","2.1.10","2.1.11","2.1.12","2.1.15","2.1.16","2.1.18","2.1.19","2.1.2","2.1.20","2.1.22","2.1.23","2.1.24","2.1.25","2.1.26","2.1.3","2.1.4","2.1.5","2.1.6","2.1.7","2.1.8","2.1.9"]}],"products":[{"vendor":"networknt","product":"light-oauth2"}],"references":[{"url":"https://github.com/networknt/light-oauth2/issues/369","tags":["x_transferred","Issue Tracking","web"]},{"url":"https://github.com/KANIXB/JWTIssues/blob/main/Certification%20Verification%20issue%20in%20light-oauth2.md","tags":["x_transferred","Exploit","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31580","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-mx47-h5fv-ghwh"},{"url":"https://github.com/networknt/light-oauth2","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2023-31580","description":"light-oauth2 before version 2.1.27 obtains the public key without any verification. This could allow attackers to authenticate to the application with a crafted JWT token.","status":"published","published":"2023-10-24T00:00:00Z","modified":"2024-09-17T13:42:54.139Z","updated_at":"2026-11-02T14:35:27.810438Z"}],"euvd":[{"id":"EUVD-2023-2786","description":"light-oauth2 before version 2.1.27 obtains the public key without any verification. This could allow attackers to authenticate to the application with a crafted JWT token.","status":"published","published":"2023-10-24T00:00:00Z","modified":"2024-09-17T13:42:54Z","updated_at":"2026-11-03T00:28:22.305755Z"}],"ghsa":[{"id":"GHSA-mx47-h5fv-ghwh","title":"light-oauth2 missing public key verification","description":"light-oauth2 before version 2.1.27 obtains the public key without any verification. This could allow attackers to authenticate to the application with a crafted JWT token.","status":"published","published":"2023-10-25T18:32:21Z","modified":"2023-11-10T05:03:56Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-295","CWE-347"],"updated_at":"2026-11-02T14:37:19.438667Z"}],"nvd":[{"id":"CVE-2023-31580","description":"light-oauth2 before version 2.1.27 obtains the public key without any verification. This could allow attackers to authenticate to the application with a crafted JWT token.","status":"published","published":"2023-10-25T18:17:27.68Z","modified":"2026-06-17T05:57:11.787Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-295"],"updated_at":"2026-11-02T14:08:39.058878Z"}],"osv":[{"id":"GHSA-mx47-h5fv-ghwh","title":"light-oauth2 missing public key verification","description":"light-oauth2 before version 2.1.27 obtains the public key without any verification. This could allow attackers to authenticate to the application with a crafted JWT token.","status":"published","published":"2023-10-25T18:32:21Z","modified":"2024-02-16T08:21:33.704912Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-295","CWE-347"],"updated_at":"2026-11-02T15:46:52.534897Z"}]}}
