CVE & CISA-KEV Catalog

CVE-2026-18165

MEDIUM
4.2
CVSS v3
NVD

Description

@fastify/oauth2 is an OAuth 2.0 plugin for Fastify. In versions from 7.2.0 up to but not including 8.3.0, the plugin validates the OAuth state, and with PKCE the code verifier, by comparing the callback query parameter against an unprefixed, predictable cookie, with no server-side binding to the browser that began the flow. Any party able to write a cookie for the application's host, such as a sibling subdomain under the same registrable domain, can plant matching state and verifier cookies and complete an attacker-owned OAuth flow inside a victim's browser, silently signing the victim in to the attacker's account (login CSRF). It does not expose the victim's own account, credentials, or tokens. The issue is fixed in @fastify/oauth2 8.3.0, which adds an opt-in hostPrefixedCookies option. Users should upgrade to 8.3.0 and enable it, or bind state to a server-side session.

How to fix

No published remediation has been found for this vulnerability's affected products yet.

Mitigation guidance may be in the linked vendor advisories in the References section below.

TridentStack Control tracks known vulnerabilities across your Windows, macOS, and Linux fleet and shows the fix as soon as one is published. See how it works

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityNone

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N

Exploit Intelligence

0.10%probability of exploitation in 30 days
1stpercentile

Low risk: more likely to be exploited than 1% of all known CVEs.

References

Other references2

Related Vulnerabilities

Other CWE-352 (Cross-Site Request Forgery) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2016-6277High8.8100%KEV-
CVE-2022-41622High8.892%--
CVE-2014-0054Medium6.891%-Fix
CVE-2013-6429Medium6.890%-Fix
CVE-2018-7700High8.875%--
CVE-2015-2295Medium6.866%--

Common questions

How do I fix CVE-2026-18165?

No published fix for CVE-2026-18165 has been found yet. Check the linked vendor advisories for guidance as it becomes available.

Is CVE-2026-18165 being actively exploited?

Not that we know of. CVE-2026-18165 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.10% is the estimated probability that it will be exploited in the next 30 days. That is higher than 1% of all scored CVEs.

How severe is CVE-2026-18165?

CVE-2026-18165 has a CVSS v3 base score of 4.2, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

Embed a live status badge for CVE-2026-18165
CVE-2026-18165 severity badge

Markdown

[![CVE-2026-18165](https://tridentstack.com/cve/badge/CVE-2026-18165.svg)](https://tridentstack.com/cve/CVE-2026-18165)

HTML

<a href="https://tridentstack.com/cve/CVE-2026-18165"><img src="https://tridentstack.com/cve/badge/CVE-2026-18165.svg" alt="CVE-2026-18165"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-08-17.