Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. fastify
  4. ›
  5. CVE-2026-3635

CVE-2026-3635: fastify: request.protocol and request.host Spoofable via X-Forwarded-Proto/Host from Untrusted Connections

March 25, 2026

When 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.

References

  • cna.openjsf.org/security-advisories.html
  • github.com/advisories/GHSA-444r-cwp2-x5xf
  • github.com/fastify/fastify
  • github.com/fastify/fastify/releases/tag/v5.8.3
  • github.com/fastify/fastify/security/advisories/GHSA-444r-cwp2-x5xf
  • nvd.nist.gov/vuln/detail/CVE-2026-3635
  • www.cve.org/CVERecord?id=CVE-2026-3635

Code Behaviors & Features

Detect and mitigate CVE-2026-3635 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 5.8.3

Fixed versions

  • 5.8.3

Solution

Upgrade to version 5.8.3 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-348: Use of Less Trusted Source

Source file

npm/fastify/CVE-2026-3635.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:30 +0000.