8.8

CVE-2023-31999: fastify oauth2 Cross-Site Request Forgery

Modified
AliasesGHSA-g8x5-p9qc-cf95
Published 04-07-2023Last modified 26-11-2024

Vulnerability summary

CVE-2023-31999 is a high (CVSS 8.8) Cross-Site Request Forgery vulnerability in fastify oauth2. EPSS estimates a 0.70% chance of exploitation in the next 30 days, higher than 54.7% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
0.70%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 0 · Duplicates 1

Timeline

  1. 04-07-2023
    PublishedVulnerability first disclosed.
  2. 26-11-2024
    Last modifiedVulnerability information updated.

Description

All versions of @fastify/oauth2 used a statically generated state parameter at startup time and were used across all requests for all users. The purpose of the Oauth2 state parameter is to prevent Cross-Site-Request-Forgery attacks. As such, it should be unique per user and should be connected to the user's session in some way that will allow the server to validate it. v7.2.0 changes the default behavior to store the state in a cookie with the http-only and same-site=lax attributes set. The state is now by default generated for every user. Note that this contains a breaking change in the checkStateFunction function, which now accepts the full Request object.

CVSS metrics

2 scores · 2 sources · 1 version

EPSS trend

Probability

0.70%

Chance of exploitation in the next 30 days

Percentile

55%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.70% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (auth0.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

@fastify1 product
  • oauth2< 7.2.0
Fastify1 product
Npm1 product

3 vendors · 3 products

References

7 links