Web Framework Vulnerability in Fastify by Node.js
CVE-2026-16732

6.1MEDIUM

Key Information:

Vendor

Fastify

Status
Vendor
CVE Published:
18 August 2026

What is CVE-2026-16732?

Fastify, a popular web framework for Node.js, has a vulnerability that allows an attacker to bypass protections when using a numeric trustProxy setting. Specifically, configurations that set trustProxy to a numeric value like 1 allow unauthorized users to spoof forwarded request fields, leading to potential host injection in URLs, HTTPS enforcement bypasses, and CSRF-origin vulnerabilities. While the protector introduced in a previous patch addresses most trustProxy forms, the numeric form remains exploitable, allowing a direct connection to Fastify, which poses significant security risks. The issue affects Fastify versions from 5.8.3 up to, but not including, 5.12.1, which has addressed this vulnerability by disabling the numeric trustProxy at runtime.

Affected Version(s)

fastify 5.8.3 < 5.12.1

fastify 5.12.1

References

CVSS V3.1

Score:
6.1
Severity:
MEDIUM
Confidentiality:
High
Integrity:
None
Availability:
High
Attack Vector:
Adjacent Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

alimony
mcollina
climba03003
UlisesGascon
.