{"id":"CVE-2024-35220","aliases":["EUVD-2024-1716","GHSA-pj27-2xvp-4qxg"],"status":"published","title":"@fastify/session reuses destroyed session cookie","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.\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.","severity":{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00445,"percentile":0.39156,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-613"],"published":"2024-05-21T18:09:57Z","modified":"2026-10-28T02:30:49Z","fixes":[{"ecosystem":"npm","package":"@fastify/session","fixed_in":["10.9.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"@fastify/session","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.9.0"}]}]},{"source":"osv","ecosystem":"npm","package":"@fastify/session","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"10.9.0"}]}]}],"products":[{"vendor":"fastify","product":"session"}],"references":[{"url":"https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg","tags":["x_refsource_CONFIRM","x_transferred","advisory","web"]},{"url":"https://github.com/fastify/session/issues/251","tags":["x_refsource_MISC","x_transferred","report","web"]},{"url":"https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f","tags":["x_refsource_MISC","x_transferred","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35220","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-pj27-2xvp-4qxg"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35220.json","tags":["advisory"]},{"url":"https://github.com/fastify/session","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-35220","title":"@fastify/session reuses destroyed session cookie","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.\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.","status":"published","published":"2024-05-21T20:26:53.312Z","modified":"2024-08-02T03:07:46.81Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-613"],"updated_at":"2026-11-02T14:34:19.965827Z"}],"euvd":[{"id":"EUVD-2024-1716","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.\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.","status":"published","published":"2024-05-21T20:26:53Z","modified":"2024-08-02T03:07:46Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-03T03:50:20.898281Z"}],"ghsa":[{"id":"GHSA-pj27-2xvp-4qxg","title":"@fastify/session reuses destroyed session cookie","description":"### 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","status":"published","published":"2024-05-21T18:09:57Z","modified":"2024-08-24T09:39:00Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-613"],"updated_at":"2026-11-02T14:38:00.257632Z"}],"nvd":[{"id":"CVE-2024-35220","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.\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.","status":"published","published":"2024-05-21T21:15:08.117Z","modified":"2026-06-17T07:34:34.153Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","level":"high","assessor":"secondary"}],"cwes":["CWE-613"],"updated_at":"2026-11-02T14:10:01.327642Z"}],"osv":[{"id":"CVE-2024-35220","title":"@fastify/session reuses destroyed session cookie","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.\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.","status":"published","published":"2024-05-21T20:26:53.312Z","modified":"2026-10-28T02:30:49.112166769Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-613"],"updated_at":"2026-11-02T15:44:40.704083Z"},{"id":"GHSA-pj27-2xvp-4qxg","title":"@fastify/session reuses destroyed session cookie","description":"### 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","status":"published","published":"2024-05-21T18:09:57Z","modified":"2026-09-10T03:50:14.089901675Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-613"],"updated_at":"2026-11-02T15:46:53.244788Z"}]}}
