GHSA-g8x5-p9qc-cf95 · Severity: high · Ecosystem: npm — @fastify/oauth2 vulnerable to Cross Site Request Forgery due to reused Oauth2 state
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.
Conclusion & alert: CVE-2023-31999 is rated High Exploit Risk (78.3/100): CVSS High severity, with medium exploitation likelihood (EPSS 1.31%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-03-29 | 1.15% | 1.31% | +0.16% |
| 2 | 2026-03-04 | 0.44% | 1.15% | +0.71% |
| 3 | 2026-03-01 | — | 0.44% | — |
Full EPSS history (45 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
GHSA-g8x5-p9qc-cf95 · Severity: high · Ecosystem: npm — @fastify/oauth2 vulnerable to Cross Site Request Forgery due to reused Oauth2 state
| vendor | priority | summary | link |
|---|---|---|---|
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2023-31999 |
| URL | Tags |
|---|---|
| https://auth0.com/docs/secure/attack-protection/state-parameters | Exploit |
| https://github.com/fastify/fastify-oauth2/releases/tag/v7.2.0 | Release Notes |
| https://hackerone.com/reports/2020418 | Permissions Required |