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

Medium 5.9 Published Updated

Attackers can bypass authentication and take over accounts by using crafted JWT tokens due to missing public key verification in the light-oauth2 library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-31580?

CVE-2023-31580 is a medium-severity authentication bypass vulnerability in n/a, published on 24 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-295

Which versions are affected by CVE-2023-31580?

2 open source packages ship an affected version, including com.networknt:light-oauth2. It affects 1 product.

PackageAffectedFixed in
com.networknt:light-oauth2 MavenAll versions2.1.27
com.networknt:light-oauth2 MavenAll versions2.1.27

Products include Networknt Light-Oauth2.

How do I fix CVE-2023-31580?

Upgrade com.networknt:light-oauth2 to 2.1.27 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2023-31580 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-31580 exists.

Sources

Also known as GHSA-mx47-h5fv-ghwh.

Is CVE-2023-31580 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free