{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-3635","published":"2026-03-23T14:16:34.720000Z","last_modified":"2026-06-17T10:43:54.143000Z","status":"Analyzed","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","source":"ce714d77-add3-4f53-aff5-83d477b104bb","primary":false},"auth":false,"cwes":["CWE-348"],"cpes":[{"criteria":"cpe:2.3:a:fastify:fastify:*:*:*:*:*:node.js:*:*","part":"a","vendor":"fastify","product":"fastify","version_end_excluding":"5.8.3"}],"cpes_truncated":false,"vendors":["fastify"],"products":["fastify/fastify"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-444r-cwp2-x5xf","ecosystem":"npm","name":"fastify","purl":"pkg:npm/fastify","ranges":[{"introduced":"0","fixed":"5.8.3"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2026-3635/","html_en":"/en/cve/CVE-2026-3635/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-3635","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-3635"},"untrusted":{"vendor_name":"Fastify","product_name":"Fastify","desc_en":"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":[{"untrusted_vendor":"fastify","untrusted_product":"fastify","versions":[]}],"references":[{"url":"https://cna.openjsf.org/security-advisories.html","tags":["Third Party Advisory"]},{"url":"https://github.com/fastify/fastify/security/advisories/GHSA-444r-cwp2-x5xf","tags":["Vendor Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-3635","tags":["Third Party Advisory"]}]}}