CVE-2026-110008

Source
https://cve.org/CVERecord?id=CVE-2026-110008
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-110008.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-110008
Aliases
  • GHSA-7fcr-mwg4-pw9q
Published
2026-10-19T13:24:27Z
Modified
2026-10-28T02:30:43Z
Severity
  • 4.2 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
Summary
@fastify/oauth2 vulnerable to Login CSRF via OAuth state cookie not cleared after callback
Details

@fastify/oauth2 is a Fastify wrapper for OAuth2 login flows. In versions 7.2.0 through 8.3.1, the state and code-verifier cookies are set without a Path attribute at a login route with two or more path segments, while the clearing step at the OAuth callback writes them with a root path, so the original cookies survive the callback and the documented single-use guarantee for the state value does not hold. A state value an attacker learns stays valid for the rest of the browser session, letting the attacker drive their own authorization flow in the victim's browser and sign the victim in to the attacker's account (login CSRF). The issue is fixed in @fastify/oauth2 8.3.2, and users should upgrade to 8.3.2 or later. As a workaround, set an explicit cookie path so the set and the clear name the same cookie.

Database specific
{
    "cna_assigner":  "openjs",
    "cwe_ids":  [
        "CWE-352",
        "CWE-459",
        "CWE-613"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/110xxx/CVE-2026-110008.json"
}
References

Affected packages

Git / github.com/fastify/fastify-oauth2

Affected ranges

Type
GIT
Repo
https://github.com/fastify/fastify-oauth2
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "7.2.0"
                },
                {
                    "fixed":  "8.3.2"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "introduced":  "7.2.0"
                },
                {
                    "last_affected":  "8.3.1"
                }
            ],
            "source":  "DESCRIPTION"
        }
    ]
}

Affected versions

v7.*
v7.2.0
v7.2.1
v7.2.2
v7.3.0
v7.4.0
v7.5.0
v7.6.0
v7.7.0
v7.8.0
v7.8.1
v7.9.0
v8.*
v8.0.0
v8.0.1
v8.1.0
v8.1.1
v8.1.2
v8.2.0
v8.2.1
v8.3.0
v8.3.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-110008.json"