CVE-2024-35220: @fastify/session reuses destroyed session cookie
Impact 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. Patches Updating to v10.9.0 will solve this. Workarounds None References Publicly reported at: https://github.com/fastify/session/issues/251
Published May 21, 2024 · Updated Aug 24, 2024
Affected packages
@fastify/session
- Ecosystem
- npm
- Affected
- < 10.9.0
- Fixed in
- 10.9.0
- Check
npm ls @fastify/session
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
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.
Patches
Updating to v10.9.0 will solve this.
Workarounds
None
References
Publicly reported at: https://github.com/fastify/session/issues/251
Credited to kaanoz1.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
