High severity · published May 21, 2024
CVE-2024-35220
@fastify/session reuses destroyed session cookie
7.4
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
None
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 39% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SE
session · fastify
< 10.9.0 · source: vendor, CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-35220
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-35220
github.com
https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f
github.com
https://github.com/fastify/session/issues/251
github.com
https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg
