{"id":"CVE-2026-3635","aliases":["CLSA-2026-1786387037","CLSA-2026-1794675489","GHSA-444r-cwp2-x5xf"],"summary":"Fastify request.protocol and request.host spoofable via X-Forwarded-Proto/Host from untrusted connections when trustProxy uses restrictive trust function","published_at":"2026-03-23T13:53:00.386Z","modified_at":"2026-11-14T19:15:02.476029Z","products":[],"rating":{"severity":"medium","score":6.1,"vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","attack_path":"adjacent","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0016700000269338489,"percentile":0.06052999943494797,"date":"2026-11-19T00:00:00Z"},"priority":6.1,"details":"Summary\nWhen trustProxy is configured with a restrictive trust function (e.g., a specific IP like trustProxy: '10.0.0.1', a subnet, a hop count, or a custom function), the request.protocol and request.host getters read X-Forwarded-Proto and X-Forwarded-Host headers from any connection — including connections from untrusted IPs. This allows an attacker connecting directly to Fastify (bypassing the proxy) to spoof both the protocol and host seen by the application.\n\nAffected Versions\nfastify <= 5.8.2\n\nImpact\nApplications using request.protocol or request.host for security decisions (HTTPS enforcement, secure cookie flags, CSRF origin checks, URL construction, host-based routing) are affected when trustProxy is configured with a restrictive trust function.\n\nWhen trustProxy: true (trust everything), both host and protocol trust all forwarded headers — this is expected behavior. The vulnerability only manifests with restrictive trust configurations.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"fastify/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"5.8.2"}]}],"provider":"cvelistv5","source":"CVE-2026-3635","relation":"self"},{"ecosystem":"NVD","package":"fastify:fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.8.3"}]}],"fixed":["5.8.3"],"provider":"nvd","source":"CVE-2026-3635","relation":"self"},{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.29.1-tuxcare.0"},{"fixed":"4.29.1-tuxcare.2"}]}],"versions":["4.29.1","4.29.1-tuxcare.1"],"fixed":["4.29.1-tuxcare.2"],"provider":"osv","source":"CLSA-2026-1786387037","relation":"self"},{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.7.4-tuxcare.0"},{"fixed":"5.7.4-tuxcare.1"}]}],"versions":["5.7.4"],"fixed":["5.7.4-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1789159896","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.1-tuxcare.0"},{"fixed":"5.2.1-tuxcare.1"}]}],"versions":["5.2.1"],"fixed":["5.2.1-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1789906142","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.8.2-tuxcare.0"},{"fixed":"5.8.2-tuxcare.1"}]}],"versions":["5.8.2"],"fixed":["5.8.2-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1794675489","relation":"self"},{"ecosystem":"npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.8.3"}]}],"fixed":["5.8.3"],"provider":"osv","source":"GHSA-444r-cwp2-x5xf","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","status":"affected","packages":["rhelai3/bootc-cuda-rhel9","rhelai3/bootc-rocm-rhel9","rhelai3/disk-image-cuda-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-3635"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-dashboard-rhel8","rhoai/odh-dashboard-rhel9","rhoai/odh-mod-arch-gen-ai-rhel9","rhoai/odh-mod-arch-maas-rhel9","rhoai/odh-mod-arch-model-registry-rhel9"],"package_count":5,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-3635"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"affected","packages":["devspaces/dashboard-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-3635"}],"records":[{"provider":"osv","source_id":"CLSA-2026-1789159896","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1789159896","published_at":"2026-09-11T20:51:36Z","modified_at":"2026-10-15T09:48:03.8162Z","summary":"TuxCare security update for fastify (2 CVEs)","details":"TuxCare rebuilt fastify to address 2 CVEs. Fixed in 5.7.4-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.7.4-tuxcare.0"},{"fixed":"5.7.4-tuxcare.1"}]}],"versions":["5.7.4"],"fixed":["5.7.4-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1789159896","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1789906142","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1789906142","published_at":"2026-09-20T12:09:02Z","modified_at":"2026-10-15T09:46:02.760386Z","summary":"TuxCare security update for fastify (3 CVEs)","details":"TuxCare rebuilt fastify to address 3 CVEs. Fixed in 5.2.1-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.1-tuxcare.0"},{"fixed":"5.2.1-tuxcare.1"}]}],"versions":["5.2.1"],"fixed":["5.2.1-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1789906142","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2026-3635","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-3635","license":"CC-BY-4.0","published_at":"2026-03-23T13:53:00.386Z","modified_at":"2026-03-23T15:30:10.526Z","summary":"Fastify request.protocol and request.host spoofable via X-Forwarded-Proto/Host from untrusted connections when trustProxy uses restrictive trust function","details":"Summary\nWhen trustProxy is configured with a restrictive trust function (e.g., a specific IP like trustProxy: '10.0.0.1', a subnet, a hop count, or a custom function), the request.protocol and request.host getters read X-Forwarded-Proto and X-Forwarded-Host headers from any connection — including connections from untrusted IPs. This allows an attacker connecting directly to Fastify (bypassing the proxy) to spoof both the protocol and host seen by the application.\n\nAffected Versions\nfastify <= 5.8.2\n\nImpact\nApplications using request.protocol or request.host for security decisions (HTTPS enforcement, secure cookie flags, CSRF origin checks, URL construction, host-based routing) are affected when trustProxy is configured with a restrictive trust function.\n\nWhen trustProxy: true (trust everything), both host and protocol trust all forwarded headers — this is expected behavior. The vulnerability only manifests with restrictive trust configurations.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","source":"CVE-2026-3635"}],"affected":[{"ecosystem":"CVE","package":"fastify/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"5.8.2"}]}],"provider":"cvelistv5","source":"CVE-2026-3635","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/fastify/fastify/security/advisories/GHSA-444r-cwp2-x5xf"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-3635"},{"type":"WEB","url":"https://cna.openjsf.org/security-advisories.html"}]},{"provider":"nvd","source_id":"CVE-2026-3635","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3635","severity":[],"affected":[{"ecosystem":"NVD","package":"fastify:fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.8.3"}]}],"fixed":["5.8.3"],"provider":"nvd","source":"CVE-2026-3635","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1786387037","relation":"self","url":"https://osv.dev/vulnerability/CLSA-2026-1786387037","published_at":"2026-08-10T18:37:17Z","modified_at":"2026-10-15T09:45:59.900297Z","summary":"TuxCare security update for fastify (1 CVE)","details":"TuxCare rebuilt fastify to address 1 CVE. Fixed in 4.29.1-tuxcare.2.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.29.1-tuxcare.0"},{"fixed":"4.29.1-tuxcare.2"}]}],"versions":["4.29.1","4.29.1-tuxcare.1"],"fixed":["4.29.1-tuxcare.2"],"provider":"osv","source":"CLSA-2026-1786387037","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1794675489","relation":"self","url":"https://osv.dev/vulnerability/CLSA-2026-1794675489","published_at":"2026-11-14T17:58:10Z","modified_at":"2026-11-14T19:15:02.476029Z","summary":"TuxCare security update for fastify (1 CVE)","details":"TuxCare rebuilt fastify to address 1 CVE. Fixed in 5.8.2-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.8.2-tuxcare.0"},{"fixed":"5.8.2-tuxcare.1"}]}],"versions":["5.8.2"],"fixed":["5.8.2-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1794675489","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-444r-cwp2-x5xf","relation":"self","url":"https://osv.dev/vulnerability/GHSA-444r-cwp2-x5xf","license":"CC-BY-4.0","published_at":"2026-03-25T19:32:28Z","modified_at":"2026-03-25T19:56:21.10811Z","summary":"fastify: request.protocol and request.host Spoofable via X-Forwarded-Proto/Host from Untrusted Connections","details":"## Summary\n\nWhen `trustProxy` is configured with a restrictive trust function (e.g., a specific IP like `trustProxy: '10.0.0.1'`, a subnet, a hop count, or a custom function), the `request.protocol` and `request.host` getters read `X-Forwarded-Proto` and `X-Forwarded-Host` headers from any connection — including connections from untrusted IPs. This allows an attacker connecting directly to Fastify (bypassing the proxy) to spoof both the protocol and host seen by the application.\n\n## Affected Versions\n\nfastify <= 5.8.2\n\n## Impact\n\nApplications using `request.protocol` or `request.host` for security decisions (HTTPS enforcement, secure cookie flags, CSRF origin checks, URL construction, host-based routing) are affected when `trustProxy` is configured with a restrictive trust function.\n\nWhen `trustProxy: true` (trust everything), both `host` and `protocol` trust all forwarded headers — this is expected behavior. The vulnerability only manifests with restrictive trust configurations.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","source":"GHSA-444r-cwp2-x5xf"}],"affected":[{"ecosystem":"npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.8.3"}]}],"fixed":["5.8.3"],"provider":"osv","source":"GHSA-444r-cwp2-x5xf","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/fastify/fastify/security/advisories/GHSA-444r-cwp2-x5xf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3635"},{"type":"WEB","url":"https://cna.openjsf.org/security-advisories.html"},{"type":"PACKAGE","url":"https://github.com/fastify/fastify"},{"type":"WEB","url":"https://github.com/fastify/fastify/releases/tag/v5.8.3"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-3635"}]},{"provider":"redhat-vex","source_id":"CVE-2026-3635","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-3635","license":"CC-BY-4.0","published_at":"2026-03-23T13:53:00.386Z","modified_at":"2026-03-25T19:26:44Z","summary":"fastify: request.protocol and request.host spoofable via X-Forwarded-Proto/Host from untrusted connections when trustProxy uses restrictive trust function","details":"A flaw was found in fastify. When the trustProxy option is configured with a restrictive trust function, such as a specific IP, a subnet, a hop count or a custom function, the request.protocol and request.host getters read X-Forwarded-Proto and X-Forwarded-Host headers from any connection, including connections from untrusted IPs. This allows an attacker connecting directly to the server, bypassing the proxy, to spoof both the protocol and host seen by the application.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","source":"CVE-2026-3635"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-3635"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","status":"affected","packages":["rhelai3/bootc-cuda-rhel9","rhelai3/bootc-rocm-rhel9","rhelai3/disk-image-cuda-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-3635"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-dashboard-rhel8","rhoai/odh-dashboard-rhel9","rhoai/odh-mod-arch-gen-ai-rhel9","rhoai/odh-mod-arch-maas-rhel9","rhoai/odh-mod-arch-model-registry-rhel9"],"package_count":5,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-3635"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"affected","packages":["devspaces/dashboard-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-3635"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-3635.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-3635"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2450330"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-3635"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3635"},{"type":"WEB","url":"https://cna.openjsf.org/security-advisories.html"},{"type":"WEB","url":"https://github.com/fastify/fastify/security/advisories/GHSA-444r-cwp2-x5xf"}]}],"references":[{"type":"WEB","url":"https://github.com/fastify/fastify/security/advisories/GHSA-444r-cwp2-x5xf"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-3635"},{"type":"WEB","url":"https://cna.openjsf.org/security-advisories.html"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3635"},{"type":"PACKAGE","url":"https://github.com/fastify/fastify"},{"type":"WEB","url":"https://github.com/fastify/fastify/releases/tag/v5.8.3"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-3635.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-3635"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2450330"}],"sources":[{"provider":"osv","source_id":"CLSA-2026-1789159896","url":"https://osv.dev/vulnerability/CLSA-2026-1789159896","modified_at":"2026-10-15T09:48:03.8162Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1789906142","url":"https://osv.dev/vulnerability/CLSA-2026-1789906142","modified_at":"2026-10-15T09:46:02.760386Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-3635","url":"https://www.cve.org/CVERecord?id=CVE-2026-3635","license":"CC-BY-4.0","modified_at":"2026-03-23T15:30:10.526Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-3635","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3635","relation":"self"},{"provider":"osv","source_id":"CLSA-2026-1786387037","url":"https://osv.dev/vulnerability/CLSA-2026-1786387037","modified_at":"2026-10-15T09:45:59.900297Z","relation":"self"},{"provider":"osv","source_id":"CLSA-2026-1794675489","url":"https://osv.dev/vulnerability/CLSA-2026-1794675489","modified_at":"2026-11-14T19:15:02.476029Z","relation":"self"},{"provider":"osv","source_id":"GHSA-444r-cwp2-x5xf","url":"https://osv.dev/vulnerability/GHSA-444r-cwp2-x5xf","license":"CC-BY-4.0","modified_at":"2026-03-25T19:56:21.10811Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-3635","url":"https://access.redhat.com/security/cve/CVE-2026-3635","license":"CC-BY-4.0","modified_at":"2026-03-25T19:26:44Z","relation":"self"}]}
