# CVE-2023-31580: light-oauth2 missing public key verification

- Severity: Medium 5.9 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-10-24T00:00:00.000Z
- Modified: 2026-06-17T05:57:11.787Z
- Also known as: GHSA-mx47-h5fv-ghwh
- Weaknesses: CWE-295, CWE-347
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- com.networknt:light-oauth2 (Maven): before 2.1.27
- networknt light-oauth2: before 2.1.27

## Every score

- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/KANIXB/JWTIssues/blob/main/Certification%20Verification%20issue%20in%20light-oauth2.md> (exploit, web)
- <https://github.com/networknt/light-oauth2/issues/369> (issue-tracking, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-31580> (advisory)
- <https://github.com/networknt/light-oauth2> (package)

## Sources

- CVE List: [CVE-2023-31580](https://www.cve.org/CVERecord?id=CVE-2023-31580), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-mx47-h5fv-ghwh](https://github.com/advisories/GHSA-mx47-h5fv-ghwh), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2023-31580](https://nvd.nist.gov/vuln/detail/CVE-2023-31580), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-31580 · Whole record: https://cve.day/CVE-2023-31580.json · Rebuilt by cve.day 2026-11-25T22:58:29.041Z
