logo

CVE-2024-35220 @fastify/session

Package

Manager: npm
Name: @fastify/session
Vulnerable Version: >=0 <10.9.0

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

EPSS: 0.00258 pctl0.49024

Details

@fastify/session reuses destroyed session cookie ### Impact 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. ### Patches Updating to v10.9.0 will solve this. ### Workarounds None ### References Publicly reported at: https://github.com/fastify/session/issues/251

Metadata

Created: 2024-05-21T18:09:57Z
Modified: 2024-05-22T13:26:11Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-pj27-2xvp-4qxg/GHSA-pj27-2xvp-4qxg.json
CWE IDs: ["CWE-613"]
Alternative ID: GHSA-pj27-2xvp-4qxg
Finding: F280
Auto approve: 1