{"id":"GHSA-3m5p-2c4r-xxw2","revision":null,"records":[{"revision":"6767c975fa6d49769dfe79d470e2ead5","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-16732","aliases":[],"title":"fastify vulnerable to X-Forwarded-* spoofing under trustProxy hop-count","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.","state":0,"publishedAt":"2026-08-18T20:30:22.592+00:00","modifiedAt":"2026-08-19T13:16:06.497+00:00","affected":[{"ecosystem":"Vendor product","name":"fastify","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"fastify\",\n                    \"product\": \"fastify\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"versions\": [\n                        {\n                            \"versionType\": \"semver\",\n                            \"status\": \"affected\",\n                            \"version\": \"5.8.3\",\n                            \"lessThan\": \"5.12.1\"\n                        },\n                        {\n                            \"versionType\": \"semver\",\n                            \"status\": \"unaffected\",\n                            \"version\": \"5.12.1\"\n                        }\n                    ],\n                    \"packageURL\": \"pkg:npm/fastify\"\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":6.1,"severity":"MEDIUM"}],"references":["https://github.com/fastify/fastify/security/advisories/GHSA-3m5p-2c4r-xxw2","https://cna.openjsf.org/security-advisories.html"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-16732","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-16732","identifiers":["CVE-2026-16732"]},"retained":false,"historicalAffected":[]},{"revision":"286b2fac3cdb4f619aee6290a8e4e255","observedAt":"2026-11-19T09:24:53.739+00:00","statement":{"source":"euvd","id":"EUVD-2026-61222","aliases":["CVE-2026-16732","GHSA-3m5p-2c4r-xxw2"],"title":"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 add…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":6.1,"severity":null}],"references":["https://github.com/fastify/fastify/security/advisories/GHSA-3m5p-2c4r-xxw2","https://cna.openjsf.org/security-advisories.html"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-61222","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 18, 2026, 8:30:22 PM","dateUpdated":"Aug 19, 2026, 1:16:06 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-61222","identifiers":["EUVD-2026-61222","CVE-2026-16732","GHSA-3m5p-2c4r-xxw2"]},"retained":false,"historicalAffected":[]},{"revision":"8f3ad3afafea4e5dabf3c9bbc37a9bb1","observedAt":"2026-10-25T05:17:25.909+00:00","statement":{"source":"nvd","id":"CVE-2026-16732","aliases":[],"title":"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 add…","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.","state":0,"publishedAt":"2026-08-18T21:16:34.063+00:00","modifiedAt":"2026-09-02T14:39:20.05+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · ce714d77-add3-4f53-aff5-83d477b104bb · Secondary","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":6.1,"severity":"MEDIUM"}],"references":["https://cna.openjsf.org/security-advisories.html","https://github.com/fastify/fastify/security/advisories/GHSA-3m5p-2c4r-xxw2"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-16732","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-348"],"productCriteria":["cpe:2.3:a:fastify:fastify:*:*:*:*:*:node.js:*:*"],"sourceDates":{"published":"2026-08-18T21:16:34.063","lastModified":"2026-09-02T14:39:20.050"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-16732","identifiers":["CVE-2026-16732"]},"retained":false,"historicalAffected":[]},{"revision":"c47ae64d776746acbfaac110c51e4dfb","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-3m5p-2c4r-xxw2","aliases":["CVE-2026-16732"],"title":"fastify vulnerable to X-Forwarded-* spoofing under trustProxy hop-count","description":"## Impact\n\nThe fix for [CVE-2026-3635](https://www.cve.org/CVERecord?id=CVE-2026-3635) ([GHSA-444r-cwp2-x5xf](https://github.com/fastify/fastify/security/advisories/GHSA-444r-cwp2-x5xf)) added a `proxyFn(socket.remoteAddress, 0)` guard on the `X-Forwarded-*` reads in `request.host`, `request.protocol`, `request.hostname`, `request.ip`, and `request.ips`. 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 (`trustProxy: <number>`) compiles to a predicate that structurally ignores the address argument, so the guard reduces to `0 < tp`, always true for any `tp >= 1`.\n\nApplications configured with `trustProxy: <number>` (documented as \"behind N reverse proxies\", `trustProxy: 1` being the canonical single-proxy setting) remain vulnerable. An attacker who can reach the Fastify origin directly, bypassing the front-facing proxy, can spoof the request fields exactly as in the unpatched version. Impact class matches the parent CVE-2026-3635: host injection in generated URLs, HTTPS-enforcement bypass, secure-cookie / CSRF-origin bypass, host-based routing and cache poisoning.\n\n## Patches\n\nPatched in fastify 5.12.1. The numeric form of `trustProxy` is now disabled at runtime and removed from the TypeScript type union.\n\n## Workarounds\n\n- Migrate to an IP / CIDR / custom-function `trustProxy` value that validates the connecting address. Custom functions must inspect the `address` argument, not only the hop index.\n- Ensure the Fastify origin is only reachable through the trusted proxy chain (no direct network path).","state":0,"publishedAt":"2026-09-02T15:14:06+00:00","modifiedAt":"2026-09-02T15:30:17.6273426+00:00","affected":[{"ecosystem":"npm","name":"fastify","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"5.8.3"},{"kind":"fixed","version":"5.12.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/fastify/fastify/security/advisories/GHSA-3m5p-2c4r-xxw2","https://nvd.nist.gov/vuln/detail/CVE-2026-16732","https://github.com/fastify/fastify/commit/8acfea7eada05383a7357e3eb21c2628416df280","https://cna.openjsf.org/security-advisories.html","https://github.com/fastify/fastify","https://github.com/fastify/fastify/releases/tag/v5.12.1"],"sourceUrl":"https://github.com/advisories/GHSA-3m5p-2c4r-xxw2","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-3m5p-2c4r-xxw2","identifiers":["GHSA-3m5p-2c4r-xxw2","CVE-2026-16732"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-19T19:49:02.2080688+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T19:49:02.2080688+00:00","lastSuccessAt":"2026-11-19T19:49:02.4104946+00:00","error":null,"lastVerifiedAt":"2026-11-19T19:49:02.4104951+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-e926604b00572495d2532e7e16a009d33144d82739d00d5c817145c91beef649","complete":true,"records":429005,"lastAttemptAt":"2026-11-19T19:47:03.5468516+00:00","lastSuccessAt":"2026-11-19T19:47:03.3773964+00:00","error":null,"lastVerifiedAt":"2026-11-19T19:47:03.5468516+00:00","snapshotPublishedAt":"2026-11-19T19:29:05+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-4bfdec5112b243e48c56bc5172ee869c","complete":false,"records":13866,"lastAttemptAt":"2026-11-19T19:58:47.4812903+00:00","lastSuccessAt":"2026-11-19T19:58:47.477+00:00","error":"518 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-19T19:58:47.477+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13396,"expectedIdentifiers":13914,"failedIdentifiers":518},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-19T19:49:02.2080688+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T19:49:02.2080688+00:00","lastSuccessAt":"2026-11-19T19:49:02.4114037+00:00","error":null,"lastVerifiedAt":"2026-11-19T19:49:02.411404+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-d87b508fe7254e86be9d11625119f28e","complete":true,"records":13878,"lastAttemptAt":"2026-11-19T19:49:15.6570679+00:00","lastSuccessAt":"2026-11-19T19:49:15.653+00:00","error":null,"lastVerifiedAt":"2026-11-19T19:49:15.653+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13914,"expectedIdentifiers":13914,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-7b847de8d346a4b605d25dfaa256e6048ccf033cdf1e65b5fde14a9872a0b2a6","complete":true,"records":9965,"lastAttemptAt":"2026-11-19T19:48:57.4826868+00:00","lastSuccessAt":"2026-11-19T16:46:59.4476531+00:00","error":null,"lastVerifiedAt":"2026-11-19T19:48:57.4826868+00:00","snapshotPublishedAt":"2026-11-19T16:18:26+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T19:47:03.7252084+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T19:47:03.7252084+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-144175a7f246d52f4b35e8013958783dc7f5518066becd11cdfe790dd8f37e96","complete":true,"records":3195,"lastAttemptAt":"2026-11-19T19:49:02.1686664+00:00","lastSuccessAt":"2026-11-19T19:49:02.0382337+00:00","error":null,"lastVerifiedAt":"2026-11-19T19:49:02.1686664+00:00","snapshotPublishedAt":"2026-11-19T18:48:09+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-a1d34507d5acbe17a3a29de77ee1f538c1b64c7595ee398fa4460b04b2528058","complete":true,"records":232772,"lastAttemptAt":"2026-11-19T19:48:57.3318311+00:00","lastSuccessAt":"2026-11-19T19:48:56.3067292+00:00","error":null,"lastVerifiedAt":"2026-11-19T19:48:57.3318311+00:00","snapshotPublishedAt":"2026-11-19T18:48:13+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}