{"id":"CVE-2024-35220","aliases":["GHSA-pj27-2xvp-4qxg"],"url":"https://o3.security/vulnerability/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.","published":"2024-05-21T20:26:53.312Z","modified":"2026-07-15T01:49:22.208503647Z","cvss":{"score":7.4,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"@fastify/session","fixedVersion":"10.9.0"}],"fix":{"url":"https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f","label":"fastify/session@0495ce5"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:49:22.208503647Z"}}