@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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-613"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35220.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "10.9.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "0495ce5b534c4550f25228821db8098293439f2f"
}
],
"source": "REFERENCES_COMMIT"
}
]
}