CVE-2024-35220

@fastify/session reuses destroyed session cookie

State
Published
Severity
7.4 High
Published
May 21, 2024
Updated
Aug 2, 2024
Reserved
May 14, 2024

Read the record on cve.org

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

CVSSScoreVectorSource
3.17.4 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:NGitHub_M

Weaknesses

  • CWE-613 Insufficient Session Expiration

Affected Products

ProductVersions
sessionfastify
  • < 10.9.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.