CVEBrief

Home / fastify / fastify / CVE-2026-16732

CVE-2026-16732: is it exploited, and which versions of fastify are affected and fixed?

CVE-2026-16732 is an use of Less Trusted Source vulnerability in fastify. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: fastify from 5.8.3 before 5.12.1 (GitHub advisory GHSA-3m5p-2c4r-xxw2). Fixed in 5.12.1 (GitHub advisory GHSA-3m5p-2c4r-xxw2). Severity: Medium (6.1, CVSS 3.1, from openjs).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:08 UTC and NVD November 19, 2026, 07:08 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 11:38 UTC
Affected
fastify from 5.8.3 before 5.12.1
GitHub advisory GHSA-3m5p-2c4r-xxw2
Fixed in
5.12.1
GitHub advisory GHSA-3m5p-2c4r-xxw2
Severity
Medium 6.1
CVSS 3.1 from openjs
Exploit odds (EPSS)
0.15% in 30 days
higher than 4% of CVEs; FIRST, December 2, 2026

What is 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.

From the CVE record by openjs, last updated August 19, 2026, 13:16 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
fastifyfastifyfrom 5.8.3 before 5.12.15.12.1

As the CVE record by openjs states it, last updated August 19, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
npmfastify>= 5.8.3, < 5.12.15.12.1GHSA-3m5p-2c4r-xxw2

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 2, 2026. Summary: fastify vulnerable to X-Forwarded-* spoofing under trustProxy hop-count.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
fastifyfastifyfrom 5.8.3 before 5.12.1application

NVD analysis (status Analyzed), last modified September 2, 2026, 14:39 UTC.

How severe is CVE-2026-16732?

ScoreVersionVectorSource
Medium 6.1CVSS 3.1CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:Nopenjs

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2026-16732 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: partial (CISA ADP, August 19, 2026)
EPSS
0.15% probability of exploitation activity in the next 30 days, percentile 4.2 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

Who found and reported it?

As published in the CVE record; contact details are removed.

When was it published, and where is the official record?

Reserved
July 23, 2026
Published
August 18, 2026, 20:30 UTC
CVE record updated
August 19, 2026, 13:16 UTC by openjs
NVD
Analyzed, last modified September 2, 2026, 14:39 UTC
Last checked
CVE list November 19, 2026, 07:08 UTC; NVD November 19, 2026, 07:08 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect fastify?

Every CVE in fastify

Questions about CVE-2026-16732

Is CVE-2026-16732 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 0.15% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of fastify are affected by CVE-2026-16732?

fastify from 5.8.3 before 5.12.1, per the GitHub advisory GHSA-3m5p-2c4r-xxw2. The tables above give every range the sources list.

Which version fixes CVE-2026-16732?

5.12.1, per the GitHub advisory GHSA-3m5p-2c4r-xxw2. Check the vendor's advisory before you rely on it.

How severe is CVE-2026-16732?

Medium (6.1, CVSS 3.1, from openjs). The severity table above shows each score with its source.

Where is the official record of CVE-2026-16732?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.