Skip to main content
← All vulnerabilities
CVE-2024-35220GHSA-PJ27-2XVP-4QXG

@fastify/session reuses destroyed session cookie

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 10.9.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • fastify session

    fixed in 10.9.0

  • @fastify/sessionnpm

    fixed in 10.9.0

References 3

GitHub · fastify/session