CVE-2024-35220
@fastify/session reuses destroyed session cookie
Description
@fastify/session is a session plugin for fastify. Requires the @fastify/cookie plugin. When restoring the cookie from the session store, the `expires` field is overriden if the `maxAge` field was set. This means a cookie is never correctly detected as expired and thus expired sessions are not destroyed. This vulnerability has been patched 10.8.0.
INFO
Published Date :
May 21, 2024, 9:15 p.m.
Last Modified :
June 17, 2026, 7:34 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | [email protected] |
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-35220.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-35220 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-35220
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-35220 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-35220 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'fastify', 'product': 'session', 'versions': [{'status': 'affected', 'version': '< 10.9.0'}]}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:2.3:a:fastify:session:0:*:*:*:*:*:*:*'], 'vendor': 'fastify', 'product': 'session', 'versions': [{'status': 'affected', 'version': '0', 'versionType': 'custom', 'lessThanOrEqual': '10.8.0'}, {'status': 'unaffected', 'version': '10.9.0'}], 'defaultStatus': 'unknown'}] Added SSVC {'id': 'CVE-2024-35220', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2024-05-22T15:49:51.191902Z'} -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f Added Reference https://github.com/fastify/session/issues/251 Added Reference https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg -
CVE Received by [email protected]
May. 21, 2024
Action Type Old Value New Value Added Description @fastify/session is a session plugin for fastify. Requires the @fastify/cookie plugin. When restoring the cookie from the session store, the `expires` field is overriden if the `maxAge` field was set. This means a cookie is never correctly detected as expired and thus expired sessions are not destroyed. This vulnerability has been patched 10.8.0. Added Reference GitHub, Inc. https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg [No types assigned] Added Reference GitHub, Inc. https://github.com/fastify/session/issues/251 [No types assigned] Added Reference GitHub, Inc. https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f [No types assigned] Added CWE GitHub, Inc. CWE-613 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N