CVE-2024-35220 HIGH

CVE-2024-35220: @fastify/session reuses destroyed session cookie

Vendor Fastify
Product session
Weakness CWE-613 · Insufficient session expiration
Published May 21, 2024
Last update August 2, 2024

CVSS base score

7.4/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality High
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

What the vulnerability does

01Description

@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.

Key dates

02Disclosure timeline

May 21, 2024 CVE published
August 2, 2024 Record updated