CVE-2024-35220 @fastify/session reuses destroyed session cookie
HighCVSS 7.4
EPSS 0.45%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| fastify @fastify/session | <= 10.8.0; = < 10.9.0 | after 10.8.0 | Fixed |
| fastify @fastify/session(npm) | < 10.9.0 | 10.9.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| fastify @fastify/session(npm) | < 10.9.0 | 10.9.0 |
| fastify @fastify/session | = < 10.9.0 | No fix listed |
| fastify @fastify/session | <= 10.8.0 | No fix listed |
References
- https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg vendor-advisory
- https://github.com/fastify/session/issues/251
- https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product