U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

Vulnerability Change Records for CVE-2023-35935

Change History

CVE Modified by GitHub, Inc. 7/06/2023 5:15:09 PM

Action Type Old Value New Value
Removed CVSS V3.1
GitHub, Inc. AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

								
						
Removed CWE
GitHub, Inc. CWE-352

								
						
Changed Description
@fastify/oauth2, a wrapper around the `simple-oauth2` library, is vulnerable to cross site request forgery (CSRF) prior to version 7.2.0.. 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 CSRF 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. Version 7.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. There are no known workarounds for the issue.
** REJECT ** DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: CVE-2023-31999. Reason: This candidate is a reservation duplicate of CVE-2023-31999. Notes: All CVE users should reference CVE-2023-31999 instead of this candidate. All references and descriptions in this candidate have been removed to prevent accidental usage.
Removed Reference
https://auth0.com/docs/secure/attack-protection/state-parameters [No Types Assigned]

								
						
Removed Reference
https://github.com/fastify/fastify-oauth2/commit/bff756b456cbb769080631af2beb85671ff4c79c [No Types Assigned]

								
						
Removed Reference
https://github.com/fastify/fastify-oauth2/releases/tag/v7.2.0 [No Types Assigned]

								
						
Removed Reference
https://github.com/fastify/fastify-oauth2/security/advisories/GHSA-g8x5-p9qc-cf95 [No Types Assigned]