@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.
Severity
CVSS 3.1
4.2 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS
0.10%(unchanged from 0.10% a week ago) estimated probability of exploitation activity in the next 30 days; 1st percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-352Cross-Site Request Forgery (Cross Site Reference Forgery) CWE-459Incomplete Cleanup CWE-613Insufficient Session Expirationdeprecated by MITREsee CWE-1463, CWE-1464
Show the promptExplain CVE-2026-110008 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-110008?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-110008?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-110008 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.
Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
@fastify/oauth2:@fastify/oauth2
Versions
From the CNA's record in the CVE List.
Product
Affected
@fastify/oauth2
from 7.2.0 before 8.3.2
Attack patterns (CAPEC)
CAPEC-62 Cross Site Request Forgery Likelihood: High · Severity: Very High
CAPEC-111 JSON Hijacking (aka JavaScript Hijacking) Likelihood: High · Severity: High
CAPEC-462 Cross-Domain Search Timing Severity: Medium