Advisory

GHSA-pj27-2xvp-4qxg

Also known as: CVE-2024-35220

Summary

@fastify/session reuses destroyed session cookie

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-05-21 18:09 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

@fastify/session

npm · All systems

Affected

  • introduced 0, fixed 10.9.0 (semver)

Fixed versions

10.9.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences