{"id":"CVE-2024-35220","published":"2024-05-21T20:26:53Z","modified":"2024-08-02T03:07:46Z","title":"@fastify/session reuses destroyed session cookie","vendor":"fastify","product":"session","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00445,"percentile":0.39588,"provenance":"source"},"cwes":[{"id":"CWE-613","name":"DEPRECATED: Insufficient Session Expiration"}],"references":[{"url":"https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/fastify/session/issues/251","tags":["x_refsource_MISC"]},{"url":"https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f","tags":["x_refsource_MISC"]}],"priority":{"score":13.1,"factors":[{"name":"EPSS percentile","points":7.92},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"fastify","affectedVersions":[{"vendor":"fastify","product":"session","versions":["< 10.9.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-22T15:49:51.191902Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@fastify/session","vulnerableRanges":["<10.9.0"],"patched":["10.9.0"],"from":["GHSA-pj27-2xvp-4qxg"],"provenance":"source"}],"summary":{"text":"The @fastify/session plugin for Fastify, which requires the @fastify/cookie plugin, has a flaw in session cookie restoration: when the cookie is restored from the session store and a maxAge value is set, the expires field is overridden, so expired cookies are never correctly detected and expired sessions are not destroyed. An attacker with network access can exploit this without authentication, but it requires user interaction, such as a victim being induced to make a request that carries the old session cookie.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:31Z"},"euvd":{"id":"EUVD-2024-1716","exploited":false,"provenance":"source"}}