CVE-2024-35220: @fastify/session reuses destroyed session cookie
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.
References
Detect and mitigate CVE-2024-35220 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →