CVE-2026-16732
fastify vulnerable to X-Forwarded-* spoofing under trustProxy hop-count
fastify is a fast and low overhead web framework for Node.js. Impact: the fix for CVE-2026-3635 added a guard on the forwarded-header reads used to derive the request host, protocol, hostname, ip, and ips values, checking the connecting address. That guard closes the IP, CIDR, and custom-function forms of trustProxy correctly, because those forms compile to predicates that inspect the connecting address. The hop-count form, where trustProxy is set to a number, compiles to a predicate that structurally ignores the address, so the guard is always satisfied for any hop count of one or more. Applications configured with a numeric trustProxy value, such as trustProxy set to 1 for a single reverse proxy, remain vulnerable: an attacker who can reach the Fastify origin directly, bypassing the front-facing proxy, can spoof the forwarded request fields exactly as in the unpatched version. The impact class matches the parent CVE-2026-3635, including host injection in generated URLs, HTTPS-enforcement bypass, secure-cookie and CSRF-origin bypass, and host-based routing and cache poisoning. Affected versions are fastify from 5.8.3 up to but not including 5.12.1. Patches: patched in fastify 5.12.1, where the numeric form of trustProxy is disabled at runtime and removed from the TypeScript type union. Workarounds: migrate to an IP, CIDR, or custom-function trustProxy value that validates the connecting address, and ensure the Fastify origin is only reachable through the trusted proxy chain.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.158% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 6.1 · published by openjsCVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
Assessment source · checked 2026-11-19T12:58:09.955Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T12:58:09.955Z | CVE Program |
| epss | verified | 2026-11-19T16:04:47.342Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:30.987Z | OSV |
| affected | verified | 2026-11-19T12:58:09.955Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:58:09.955Z | CVE Program |
Affected versions and configuration
fastify fastify; default status: unaffected: 5.8.3 to < 5.12.1 [affected; scheme: semver]; 5.12.1 [unaffected; scheme: semver]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "fastify",
"product": "fastify",
"versions": [
{
"status": "affected",
"version": "5.8.3",
"lessThan": "5.12.1",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.12.1",
"versionType": "semver"
}
],
"packageURL": "pkg:npm/fastify",
"defaultStatus": "unaffected"
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-16732",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-08-19T13:15:46.091425Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-08-19T13:16:06.497Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-3m5p-2c4r-xxw2",
"aliases": [
"CVE-2026-16732"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "5.8.3"
},
{
"fixed": "5.12.1"
}
]
}
],
"package": {
"name": "fastify",
"purl": "pkg:npm/fastify",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-3m5p-2c4r-xxw2/GHSA-3m5p-2c4r-xxw2.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/fastify/fastify/security/advisories/GHSA-3m5p-2c4r-xxw2",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-16732",
"type": "ADVISORY"
},
{
"url": "https://github.com/fastify/fastify/commit/8acfea7eada05383a7357e3eb21c2628416df280",
"type": "WEB"
},
{
"url": "https://cna.openjsf.org/security-advisories.html",
"type": "WEB"
},
{
"url": "https://github.com/fastify/fastify",
"type": "PACKAGE"
},
{
"url": "https://github.com/fastify/fastify/releases/tag/v5.12.1",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-348"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2026-08-18T21:16:34Z",
"github_reviewed_at": "2026-09-02T15:14:06Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | fastify | Not a distribution channel | 5.12.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:30.987ZArchived source JSON
Source publication: 2026-09-02T15:14:06.000Z
Source modification: 2026-09-02T15:30:17.627ZDocument fingerprint
55d483bc826a0c5071574372d56441dd1e0bca0643e042f7ad3603b5fbde7b44 - CVE ProgramConsulted: 2026-11-19T12:58:09.955ZArchived source JSON
Source publication: 2026-08-18T20:30:22.592Z
Source modification: 2026-08-19T13:16:06.497ZDocument fingerprint
a581a0852e6639154d4729d830df60af16570fcf61ffeb772c0cad450f644958 - CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:47.342ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
003916460c2793c49861244c6d747c5f7b21d769f81d58483e4fe03eb7a3f759
Official status history
- UNKNOWN → PUBLISHED · · evidence