GitHub Advisoryadvisory · npm
GHSA-pj27-2xvp-4qxg @fastify/session reuses destroyed session cookie
HIGH
Official page ↗
- Aliases
- CVE-2024-35220
- Ecosystem
- npm
- Packages
- @fastify/session
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
- Weaknesses
- CWE-613
- Reviewed
- 2024-05-21
Affected packages
• npm @fastify/session: < 10.9.0 → fixed in 10.9.0
Description
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
Related
Weakness · not in database (1)
Alias · CVE (1)
- CVE-2024-35220 @fastify/session is a session plugin for fastify. vulnerability
References
- https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg web
- https://nvd.nist.gov/vuln/detail/CVE-2024-35220 advisory
- https://github.com/fastify/session/issues/251 web
- https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f web
- https://github.com/fastify/session package