GHSA-pj27-2xvp-4qxg

Suggest an improvement
Source
https://github.com/advisories/GHSA-pj27-2xvp-4qxg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-pj27-2xvp-4qxg/GHSA-pj27-2xvp-4qxg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-pj27-2xvp-4qxg
Aliases
Published
2024-05-21T18:09:57Z
Modified
2024-05-22T13:26:11Z
Severity
  • 7.4 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N CVSS Calculator
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

Database specific
{
    "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"
}
References

Affected packages

npm / @fastify/session

Package

Name
@fastify/session
View open source insights on deps.dev
Purl
pkg:npm/%40fastify/session

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
10.9.0