目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-18165— Fastify @fastify/oauth2 跨站请求伪造漏洞

一分钟漏洞结论

影响对象
@fastify/oauth2 @fastify/oauth2
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

Fastify @fastify/oauth2是Fastify组织的一款支持OAuth2认证的插件。 Fastify @fastify/oauth2 7.2.0版本至8.3.0之前版本存在跨站请求伪造漏洞,该漏洞源于对OAuth状态和PKCE验证器的验证不当,通过比较回调查询参数与未加前缀的可预测cookie且无服务器端绑定,可能导致跨站请求伪造攻击,使受害者登录攻击者账户。

CVSS 4.2 · Medium EPSS 0.10% · P1

可能的 ATT&CK 技术 1 AI

T1566.001 · Spearphishing Attachment

影响版本矩阵 2

厂商产品 版本范围状态
@fastify/oauth2 @fastify/oauth2 7.2.0< 8.3.0 affected
8.3.0 unaffected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-18165 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
@fastify/oauth2 vulnerable to Login CSRF via plantable OAuth state cookies
来源: CVE Program / CVE List V5
Vulnerability 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.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
跨站请求伪造(CSRF)
来源: CVE Program / CVE List V5
Vulnerability Title
Fastify @fastify/oauth2 跨站请求伪造漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
Fastify @fastify/oauth2是Fastify组织的一款支持OAuth2认证的插件。 Fastify @fastify/oauth2 7.2.0版本至8.3.0之前版本存在跨站请求伪造漏洞,该漏洞源于对OAuth状态和PKCE验证器的验证不当,通过比较回调查询参数与未加前缀的可预测cookie且无服务器端绑定,可能导致跨站请求伪造攻击,使受害者登录攻击者账户。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
@fastify/oauth2 @fastify/oauth2 7.2.0 ~ 8.3.0 -

二、漏洞 CVE-2026-18165 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-18165 的情报信息

请登录查看更多情报信息。

CVE-2026-18165 厂商安全公告 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-18165

暂无评论


发表评论