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-2024-31999

Change History

New CVE Received by NIST 4/10/2024 6:15:07 PM

Action Type Old Value New Value
Added CVSS V3.1

								
							
							
						
GitHub, Inc. AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Added CWE

								
							
							
						
GitHub, Inc. CWE-613
Added Description

								
							
							
						
@festify/secure-session creates a secure stateless cookie session for Fastify. At the end of the request handling, it will encrypt all data in the session with a secret key and attach the ciphertext as a cookie value with the defined cookie name. After that, the session on the server side is destroyed. When an encrypted cookie with matching session name is provided with subsequent requests, it will decrypt the ciphertext to get the data. The plugin then creates a new session with the data in the ciphertext. Thus theoretically the web instance is still accessing the data from a server-side session, but technically that session is generated solely from a user provided cookie (which is assumed to be non-craftable because it is encrypted with a secret key not known to the user). The issue exists in the session removal process. In the delete function of the code, when the session is deleted, it is marked for deletion. However, if an attacker could gain access to the cookie, they could keep using it forever. Version 7.3.0 contains a patch for the issue. As a workaround, one may include a "last update" field in the session, and treat "old sessions" as expired.
Added Reference

								
							
							
						
GitHub, Inc. https://github.com/fastify/fastify-secure-session/commit/56d66642ecc633cff0606927601e81cdac361370 [No types assigned]
Added Reference

								
							
							
						
GitHub, Inc. https://github.com/fastify/fastify-secure-session/security/advisories/GHSA-9wwp-q7wq-jx35 [No types assigned]