@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.
CVE-2026-18165
This medium-severity CVE scores 4.2 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.1%, top 99% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 4.2
- EG Score
- 4.2(medium)
- EG Risk
- 19(Track)EG Risk 19/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity42% × 45%Exploitation0% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 0%
- EPSS %ILE
- 1%
- KEV
- Not listed
Published
August 15, 2026
Last Modified
August 28, 2026
Advisory Details (2)
Auto-updated Aug 15, 2026Security Advisories | OpenJS Foundation CVE Numbering Authority
https://cna.openjsf.org/security-advisories.html@fastify/oauth2 vulnerable to Login CSRF via plantable OAuth state cookies · Advisory · fastify/fastify-oauth2 · GitHub
https://github.com/fastify/fastify-oauth2/security/advisories/GHSA-p8h8-rj28-m8q9Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 7× in last 7d / 23× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-08-29 22:03 UTCEG score recompute
- 2026-08-28 21:41 UTCEPSS rescore
- 2026-08-27 16:09 UTCEG score recompute
- 2026-08-27 14:25 UTCEPSS rescore
- 2026-08-26 14:46 UTCEPSS rescore
- 2026-08-25 10:59 UTCEG score recompute
- 2026-08-23 06:51 UTCEG score recompute
- 2026-08-23 00:19 UTCEPSS rescore
- 2026-08-22 04:48 UTCEG score recompute
- 2026-08-21 23:49 UTCEPSS rescore
- 2026-08-21 02:44 UTCEG score recompute
- 2026-08-20 22:55 UTCEPSS rescore
- 2026-08-20 00:39 UTCEG score recompute
- 2026-08-19 17:03 UTCEPSS rescore
- 2026-08-17 20:30 UTCEG score recompute
- 2026-08-17 19:50 UTCEG score recompute
- 2026-08-17 18:53 UTCEG score recompute
- 2026-08-17 13:47 UTCEPSS rescore
- 2026-08-16 16:32 UTCEG score recompute
- 2026-08-16 14:56 UTCEPSS rescore
- 2026-08-15 14:29 UTCEG score recompute
- 2026-08-15 13:53 UTCEG score recompute
- 2026-08-15 13:51 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-18165?
When was CVE-2026-18165 disclosed?
Is CVE-2026-18165 actively exploited?
What is the CVSS score of CVE-2026-18165?
How do I remediate CVE-2026-18165?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-18165
Is Your Infrastructure Affected by CVE-2026-18165?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.