CVE-2024-35220
published high CVSS 3.1 · 7.4@fastify/session reuses destroyed session cookie
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| fastify | session | < 10.9.0 (affected) | GitHub_M · cna |
| fastify | session | 0 through 10.8.0 (affected · custom)10.9.0 (unaffected)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-613 CWE-613: Insufficient Session Expiration
References
3Provider assertions
3GitHub_M · cna
@fastify/session reuses destroyed session cookie
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 684db10ae8b809c58a39ed36957731b0849ee535cd252d7c893a8d02d05e960a
- Ingested
- 23 Sep 2026, 08:23:37 UTC
- Source record
- Official CVE record