Back
CVE-2024-35220
@fastify/session reuses destroyed session cookie
High7.4EPSS 0.45%
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
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. 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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
| NVDNVD · Deferred | 3.1 | High7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.45% · top 61% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: partial
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.4.
Weakness
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npm@fastify/sessionGHSA-pj27-2xvp-4qxg (opens in a new tab)
References (3)
- https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/fastify/session/issues/251 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-pj27-2xvp-4qxg (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2024-35220)Record last updated .