SecurityContext

CVE-2026-110008: @fastify/oauth2 - Authentication Bypass

  • Cve: CVE-2026-110008
  • Name: @fastify/oauth2 - Authentication Bypass
  • Description: @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.
  • Impact: Attackers can force victims to sign into attacker accounts, enabling login CSRF and session confusion.
  • Remediation: Upgrade to version 8.3.2 or later.
  • Vulnerability type: broken_authentication
  • Vulnerability impact: broken_authentication
  • Requirement type: user_interaction
  • Requirements: Victim must have an active browser session
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 4.2
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
  • Epss score: 0.00096
  • Epss percentile: 0.0063
  • Assignee: ce714d77-add3-4f53-aff5-83d477b104bb
  • Published at: 2026-10-19T14:16:57Z
  • Age in days: 36
  • Modified at: 2026-10-19T21:13:39Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-110008
  • Nvd status: awaiting_analysis
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-352Cross-Site Request Forgery

References

UrlSourceTags
https://cna.openjsf.org/security-advisories.htmlnvd
https://github.com/fastify/fastify-oauth2/security/advisories/GHSA-7fcr-mwg4-pw9qnvd

Products

ProductAffectedPlatform boundSourcesUrl
fastify:fastify/oauth2>= 7.2.0, < 8.3.2nocna_alias/v1/products/fastify/fastify/oauth2

Projects

RepositoryLink kindsIndexedUrl
fastify/fastify-oauth2security_advisoryyes/v1/repositories/fastify/fastify-oauth2

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts