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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-18174— @fastify/forwarded vulnerable to improper input validation via unstripped tab characters in X-Forwarded-For

CVSS 5.3 · Medium EPSS 0.19% · P9

Possible ATT&CK Techniques 1AI

T1078 · Valid Accounts

Affected Version Matrix 2

VendorProductVersion RangeStatus
@fastify/forwarded@fastify/forwarded< 3.0.2affected
3.0.2unaffected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-18174

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/forwarded vulnerable to improper input validation via unstripped tab characters in X-Forwarded-For
Source: CVE Program / CVE List V5
Vulnerability Description
@fastify/forwarded resolves client addresses from the X-Forwarded-For header. In versions before 3.0.2, when the header contains two or more comma separated entries, the parser trims only space characters and does not strip horizontal tabs, even though RFC 7230 defines optional whitespace as both space and tab. As a result, an entry padded with a tab keeps the literal tab in the resolved address string. Applications that make exact string match security decisions on the resolved client IP, such as an allowlist, a blocklist, a per IP rate limit key, or audit log correlation, can be evaded because the tab corrupted string no longer matches the expected value. This does not cross the trust boundary, since a tab corrupted string is not a valid IP and cannot be mistaken for a trusted proxy. The issue is fixed in @fastify/forwarded 3.0.2.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
输入验证不恰当
Source: CVE Program / CVE List V5
Vulnerability Title
Fastify @fastify/forwarded 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Fastify @fastify/forwarded是Fastify组织开源的一个请求转发处理中间件。 Fastify @fastify/forwarded 3.0.2之前版本存在输入验证错误漏洞,该漏洞源于解析X-Forwarded-For标头时,只修剪空格而未处理水平制表符,可能导致基于精确匹配的安全决策被绕过。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
@fastify/forwarded@fastify/forwarded 0 ~ 3.0.2 -

II. Public POCs for CVE-2026-18174

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-18174

登录查看更多情报信息。

Vendor Advisories for CVE-2026-18174 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-18174

No comments yet


Leave a comment