All reports
High

@fastify/session reuses destroyed session cookie

Affected versions

Affected versions
< 10.9.0
Fixed version
10.9.0

Exploitation

CVE-2024-35220

Probability of exploitation in the next 30 days: 0.45%

FIRST EPSS · 2026-11-24

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

Links

Credits

  • kaanoz1