CVE-2023-31999

HighCVSS 8.8/10Last modified Jun 17, 2026

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.

Metrics

CVSS 3.1 8.8/10CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Jul 4, 2023
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2023

CVE-2023-32004.3The MStore API plugin for WordPress is vulnerable to Cross-Site Request Forgery due to missing nonce validation on the mstore_update_new_ordCVE-2023-320004.8A Cross-Site Scripting (XSS) vulnerability found in UniFi Network (Version 7.3.83 and earlier) allows a malicious actor with Site AdministraCVE-2023-320029.8The use of `Module._load()` can bypass the policy mechanism and require modules outside of the policy.json definition for a given module. TCVE-2023-320035.3`fs.mkdtemp()` and `fs.mkdtempSync()` can be used to bypass the permission model check using a path traversal attack. This flaw arises from CVE-2023-320048.8A vulnerability has been discovered in Node.js version 20, specifically within the experimental permission model. This flaw relates to improCVE-2023-320055.3A vulnerability has been identified in Node.js version 20, affecting users of the experimental permission model when the --allow-fs-read flaCVE-2023-320068.8The use of `module.constructor.createRequire()` can bypass the policy mechanism and require modules outside of the policy.json definition foCVE-2023-320078.8** UNSUPPORTED WHEN ASSIGNED ** The Apache Spark UI offers the possibility to enable ACLs via the configuration option spark.acls.enable. WiCVE-2023-320087.8Windows Resilient File System (ReFS) Remote Code Execution VulnerabilityCVE-2023-320098.8Windows Collaborative Translation Framework Elevation of Privilege VulnerabilityCVE-2023-32014.3The MStore API plugin for WordPress is vulnerable to Cross-Site Request Forgery due to missing nonce validation on the mstore_update_new_ordCVE-2023-320107.0Windows Bus Filter Driver Elevation of Privilege Vulnerability
CVE-2023-31999: High severity, CVSS 8.8 | Vulnix