CVE-2026-18165: @fastify/oauth2 is an OAuth 2.0 plugin for Fastify
CVE-2026-18165 is a medium-severity flaw (CVSS 4.2) affecting fastify\/oauth2. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
@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,
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 4.2 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.1% (top 98%) |
| CISA exploited list | No |
| Weakness | CWE-352 |
| Published | 2026-08-15 |
| Last modified | 2026-09-04 |
Last updated 2026-09-04 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-18165?
fastify\/oauth2: upgrade to 8.3.0. Exact commands for each OS are on this page.
Is CVE-2026-18165 being exploited?
CVE-2026-18165 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-18165 affect?
CVE-2026-18165 affects fastify\/oauth2. Severity is medium (CVSS 4.2). @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
How urgent is CVE-2026-18165?
Priority 15/100. No elevated risk signals yet.