CVE-2024-35220
HIGH 7.4CVSS 3.1@fastify/session reuses destroyed session cookie
@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.
This 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
- 21 May 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-613
- Also known as
- GHSA-pj27-2xvp-4qxg
- Sources
- NVDJSONOSV GHSA-pj27-2xvp-4qxgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | @fastify/session | < 10.9.0 | 10.9.0 |
References
- https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f · WEB
- https://github.com/fastify/session/issues/251 · WEB
- https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-35220 · ADVISORY
- https://github.com/fastify/session · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 21 May 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 May 2024)