Skip to content
RedCVE

CVE-2026-110008Fastify Oauth2 @fastify/oauth2 cross-site request forgery (CSRF)

@fastify/oauth2Published:

CVSS score

4.2

Medium

CVSS 3.1 from ce714d77-add3-4f53-aff5-83d477b104bb

Exploit probability (EPSS)

0.10%

0.10% chance of exploitation in the next 30 days, higher than 0.63% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official 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.

Source: NVD · CNA: ce714d77-add3-4f53-aff5-83d477b104bb

How to fix it, step by step

  1. Check whether you're affected

    Find every system running @fastify/oauth2 and compare its version with the affected versions.

  2. Update to a fixed version

    • Update @fastify/oauth2 to 8.3.2 or later.
  3. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N

Affected products

Affected productsVersions
@fastify/oauth2 @fastify/oauth2≥ 7.2.0, < 8.3.2

Weakness

  • CWE-352 cross-site request forgery (CSRF)
  • CWE-459 incomplete cleanup
  • CWE-613 insufficient session expiration

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-110008 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.1% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-110008?

CVE-2026-110008 has a CVSS 3.1 base score of 4.2 (medium).

Which versions are affected?

Fastify Oauth2 @fastify/oauth2 (≥ 7.2.0, < 8.3.2)

Is there a patch for CVE-2026-110008?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.