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
{
"severity": "HIGH",
"nvd_published_at": "2024-05-21T21:15:08Z",
"github_reviewed_at": "2024-05-21T18:09:57Z",
"github_reviewed": true,
"cwe_ids": [
"CWE-613"
]
}