Skip to content

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

HighCVSS 7.4 EPSS 0.45%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
fastify @fastify/session <= 10.8.0; = < 10.9.0 after 10.8.0 Fixed
fastify @fastify/session(npm) < 10.9.0 10.9.0 Fixed

Affected products

ProductAffected versionsFixed in
fastify @fastify/session(npm) < 10.9.0 10.9.0
fastify @fastify/session = < 10.9.0 No fix listed
fastify @fastify/session <= 10.8.0 No fix listed

References