{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-35220","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.","descriptionLong":"@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","updated":"2026-10-28T02:30:49.112166769Z","reserved":"2024-05-14T15:39:41.783Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"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","rating":"high","source":"GitHub_M"},"metrics":[{"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","rating":"high","source":"GitHub_M"},{"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","rating":"high","source":"github.com"},{"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","rating":"high","source":"OSV"},{"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","rating":"high","source":"GitHub"}],"rating":"high","products":["fastify session"],"affectedProducts":[{"vendor":"fastify","product":"session","defaultStatus":null,"versions":[{"version":"< 10.9.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@fastify/session","purl":"pkg:npm/%40fastify/session","ranges":["<10.9.0"],"fixed":["10.9.0"],"advisory":"GHSA-pj27-2xvp-4qxg"}],"cwes":["CWE-613"],"aliases":["GHSA-pj27-2xvp-4qxg"],"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://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35220.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35220","tags":["advisory"]},{"url":"https://github.com/fastify/session","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00445,"epssPercentile":0.39453,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-35220","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35220","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-35220","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-pj27-2xvp-4qxg","ok":true,"note":"GHSA-pj27-2xvp-4qxg"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-35220","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}