@fastify/session reuses destroyed session cookie
Description
Published to the GitHub Advisory Database
May 21, 2024
Reviewed
May 21, 2024
Published by the National Vulnerability Database
May 21, 2024
Last updated
Aug 24, 2024
Impact
When restoring the cookie from the session store, the
expires
field is overriden if themaxAge
field was set.This means a cookie is never correctly detected as expired and thus expired sessions are not destroyed.
Patches
Updating to v10.9.0 will solve this.
Workarounds
None
References
Publicly reported at: fastify/session#251
References