{"id":"CVE-2024-35220","aliases":["CVE-2024-35220","GHSA-pj27-2xvp-4qxg"],"related":[],"kind":"vulnerability","state":"published","title":"@fastify/session reuses destroyed session cookie","summary":"@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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nWhen 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.\n\n### Patches\n\nUpdating to v10.9.0 will solve this.\n\n### Workarounds\n\nNone\n\n### References\n\nPublicly reported at: https://github.com/fastify/session/issues/251","format":"markdown","source":"ghsa"},{"lang":"es","text":"@fastify/session es un complemento de sesión para fastify. Requiere el complemento @fastify/cookie. Al restaurar la cookie desde el almacén de sesiones, el campo \"expires\" se anula si se configuró el campo \"maxAge\". Esto significa que una cookie nunca se detecta correctamente como caducada y, por lo tanto, las sesiones caducadas no se destruyen. Esta vulnerabilidad ha sido parcheada 10.8.0.","source":"nvd"}],"published":"2024-05-21T18:09:57.000Z","modified":"2026-09-10T03:50:14.089Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","score":7.4,"rating":"HIGH"}],"cwes":["CWE-613"],"affected":[{"ranges":[{"version":"< 10.9.0","status":"affected"}],"vendor":"fastify","product":"session","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"10.8.0","status":"affected"},{"version":"10.9.0","status":"unaffected"}],"vendor":"fastify","product":"session","cpe":"cpe:2.3:a:fastify:session:0:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"10.9.0"}],"ecosystem":"npm","package":"@fastify/session","purl":"pkg:npm/%40fastify/session","source":"ghsa"}],"references":[{"url":"https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/fastify/session/issues/251","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35220","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/fastify/session","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-05-22T15:49:51.191Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-35220","url":"https://www.cve.org/CVERecord?id=CVE-2024-35220","licence":"CVE Terms of Use","modified":"2024-08-02T03:07:46.810Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pj27-2xvp-4qxg","url":"https://github.com/advisories/GHSA-pj27-2xvp-4qxg","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:14.089Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-35220","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35220","licence":"Public domain","modified":"2026-06-17T07:34:34.153Z"}],"updatedAt":"2026-11-25T22:58:40.703Z","epss":{"score":0.00445,"percentile":0.40449,"date":"2026-12-01T12:00:22.000Z"}}