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.
Updating to v10.9.0 will solve this.
None
Publicly reported at: https://github.com/fastify/session/issues/251
{ "nvd_published_at": "2024-05-21T21:15:08Z", "cwe_ids": [ "CWE-613" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2024-05-21T18:09:57Z" }