{"id":"CVE-2024-35220","summary":"@fastify/session reuses destroyed session cookie","details":"@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.\nThis means a cookie is never correctly detected as expired and thus expired sessions are not destroyed. This vulnerability has been patched 10.8.0.","aliases":["GHSA-pj27-2xvp-4qxg"],"modified":"2026-08-12T03:51:30.870974030Z","published":"2024-05-21T20:26:53.312Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-613"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35220.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35220.json"},{"type":"ADVISORY","url":"https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35220"},{"type":"REPORT","url":"https://github.com/fastify/session/issues/251"},{"type":"FIX","url":"https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/fastify/session","events":[{"introduced":"0"},{"fixed":"0495ce5b534c4550f25228821db8098293439f2f"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"10.9.0"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v10.8.0","v10.7.2","v10.7.1","v10.7.0","v10.6.1","v10.6.0","v10.5.0","v10.4.0","v10.3.1","v10.3.0","v10.2.1","v8.2.0","v10.2.0","v10.1.1","v10.1.0","v10.0.2","v10.0.1","v10.0.0","v9.0.0","v8.1.0","v8.0.0","v7.0.0","v6.5.1","v6.5.0","v6.4.0","v6.3.0","v6.2.2","v6.2.1","v6.2.0","v6.1.1","v6.1.0","v6.0.1","v6.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35220.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N"}]}