Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-110008— @fastify/oauth2 vulnerable to Login CSRF via OAuth state cookie not cleared after callback

Quick assessment

Affected
@fastify/oauth2 @fastify/oauth2
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

是一个用于实现 OAuth2 登录流程的 Fastify 插件。在版本 7.2.0 至 8.3.1 中,当登录路由包含两个或更多路径段时, 和 的 Cookie 在设置时未指定 属性;而在 OAuth 回调的清除步骤中,这些 Cookie 却以根路径( )写入。这导致原始 Cookie 在回调后依然有效,使得文档中承诺的 值“单次使用”保障失效。 一旦攻击者获取了某个 值,该值将在整个浏览器会话期间保持有效。攻击者可借此在受害者的浏览器中驱动其自身的授权流程,将受害者登录到攻击者控制的账户中,从而实施登录跨站请求伪

CVSS 4.2 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-110008

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
@fastify/oauth2 vulnerable to Login CSRF via OAuth state cookie not cleared after callback
Source: CVE Program / CVE List V5
Vulnerability 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: 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
Source: CVE Program / CVE List V5
Vulnerability Type
跨站请求伪造(CSRF)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
@fastify/oauth2 @fastify/oauth2 7.2.0 ~ 8.3.2 -

II. Public POCs for CVE-2026-110008

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-110008

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

Vendor Advisories for CVE-2026-110008 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-110008

No comments yet


Leave a comment