CVE-2026-18174

Source
https://cve.org/CVERecord?id=CVE-2026-18174
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-18174.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-18174
Aliases
  • GHSA-2849-m2w7-xm8f
Published
2026-07-29T13:46:07.361Z
Modified
2026-07-30T04:01:06.939729521Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
@fastify/forwarded vulnerable to improper input validation via unstripped tab characters in X-Forwarded-For
Details

@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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/18xxx/CVE-2026-18174.json",
    "cna_assigner": "openjs",
    "cwe_ids": [
        "CWE-184",
        "CWE-20"
    ]
}
References

Affected packages

Git / github.com/fastify/forwarded

Affected ranges

Type
GIT
Repo
https://github.com/fastify/forwarded
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "3.0.2"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

v2.*
v2.0.0
v2.1.0
v2.2.0
v3.*
v3.0.0
v3.0.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-18174.json"