{"id":"GHSA-pj27-2xvp-4qxg","revision":"068ab4b3bef5430e8a82027b1fbb3b65","records":[{"revision":"068ab4b3bef5430e8a82027b1fbb3b65","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-pj27-2xvp-4qxg","aliases":["CVE-2024-35220"],"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","state":0,"publishedAt":"2024-05-21T18:09:57+00:00","modifiedAt":"2026-09-10T03:50:14.0899017+00:00","affected":[{"ecosystem":"npm","name":"@fastify/session","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"10.9.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg","https://nvd.nist.gov/vuln/detail/CVE-2024-35220","https://github.com/fastify/session/issues/251","https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f","https://github.com/fastify/session"],"sourceUrl":"https://github.com/advisories/GHSA-pj27-2xvp-4qxg","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-pj27-2xvp-4qxg","identifiers":["GHSA-pj27-2xvp-4qxg","CVE-2024-35220"]},"retained":false,"historicalAffected":[]}],"coverage":[]}