CVE-2024-35220CWE-613

@fastify/session reuses destroyed session cookie

High · published May 21, 2024

CVSS v3.1
7.4
EPSS
0%
Percentile
37.7
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
7.4 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00445 · 37.7th percentile
Weakness
CWE-613 · Insufficient Session Expiration
Published
2024-05-21T20:26Z
EPSS history
Timeline
  • 21 MAY 20:26Z
    @fastify/session reuses destroyed session cookie
    cvelistv5