Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f
- https://github.com/fastify/session/issues/251
- https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg
- https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f
- https://github.com/fastify/session/issues/251
- https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg
FAQ
What is CVE-2024-35220?
CVE-2024-35220 is a vulnerability with a CVSS score of 7.4 (HIGH). @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....
How severe is CVE-2024-35220?
CVE-2024-35220 has been rated HIGH with a CVSS base score of 7.4/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-35220?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.