{"id":"EUVD-2026-61222","enisaUuid":"e76977e7-657e-32f9-90da-2b84752d6f48","description":"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.","datePublished":"Aug 18, 2026, 8:30:22 PM","dateUpdated":"Aug 19, 2026, 1:16:06 PM","baseScore":6.1,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","references":"https://github.com/fastify/fastify/security/advisories/GHSA-3m5p-2c4r-xxw2\nhttps://cna.openjsf.org/security-advisories.html\n","aliases":"CVE-2026-16732\nGHSA-3m5p-2c4r-xxw2\n","assigner":"openjs","epss":0.16,"enisaIdProduct":[{"id":"d0800ff9-5540-35f4-82af-2fd811dc1f2c","product":{"name":"fastify","vendor":{"name":"@clerk"}},"product_version":"5.8.3 \u003c5.12.1"}],"enisaIdVendor":[{"id":"d7a85449-7fc6-3c54-984f-2c4d1885b6b0","vendor":{"name":"fastify"}}],"enisaIdVulnerability":[{"id":"02be3aaa-a5ee-370d-94ce-3b611d82ea3f","vulnerability":{"id":"GHSA-3m5p-2c4r-xxw2","description":"fastify vulnerable to X-Forwarded-* spoofing under trustProxy hop-count","datePublished":"Sep 2, 2026, 3:14:06 PM","dateUpdated":"Sep 2, 2026, 3:14:06 PM","baseScore":0.0,"references":"https://github.com/fastify/fastify/security/advisories/GHSA-3m5p-2c4r-xxw2\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-16732\nhttps://github.com/fastify/fastify/commit/8acfea7eada05383a7357e3eb21c2628416df280\nhttps://cna.openjsf.org/security-advisories.html\nhttps://github.com/fastify/fastify\nhttps://github.com/fastify/fastify/releases/tag/v5.12.1\n","enisa_id":"EUVD-2026-61222\n","aliases":"GHSA-3m5p-2c4r-xxw2\nCVE-2026-16732\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:54:50 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"e7c84ae8-460a-39cc-8506-5f206c7d3bc8","vulnerability":{"id":"CVE-2026-16732","description":"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.","datePublished":"Aug 18, 2026, 8:30:22 PM","dateUpdated":"Aug 19, 2026, 1:16:06 PM","status":"PUBLISHED","baseScore":6.1,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","references":"https://github.com/fastify/fastify/security/advisories/GHSA-3m5p-2c4r-xxw2\nhttps://cna.openjsf.org/security-advisories.html\n","enisa_id":"EUVD-2026-61222\n","assigner":"openjs","epss":0.16,"dataProcessed":"Nov 19, 2026, 7:25:44 AM","vulnerabilityProduct":[{"id":"5b7ef8d9-25f2-3fc4-b39b-93e127280855","product":{"name":"fastify","vendor":{"name":"@clerk"}},"product_version":"5.8.3 \u003c5.12.1"}],"vulnerabilityVendor":[{"id":"a6168ee8-4ad2-3919-bfb1-fe5bf121dbf3","vendor":{"name":"fastify"}}]}}],"enisaIdAdvisory":[]}