BreachSpiderVerified, not vibes

CVE-2026-3635 in Fastify

Medium 6.1

Summary 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 un...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.16.1
EPSS0.2%
EPSS percentile5th
FixUnknown

Exploitable from adjacent network, high complexity, no authentication required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Fastify Fastify < 5.8.3

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: ce714d77-add3-4f53-aff5-83d477b104bb

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Summary 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. Affected Versions fastify <= 5.8.2 Impact Applications 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. When trustProxy: true (trust everything), both host and protocol trust all forwarded headers — this is expected behavior. The vulnerability only manifests with restrictive trust configurations.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-3635
BreachSpider IDBS-2026-GLOBAL-273725-M
CVSS vectorCVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
Published2026-03-23
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-348: CWE-348

Related attack patterns (CAPEC)

CAPEC-76 Manipulating Web Input to File System Calls via CWE-348

CAPEC-85 AJAX Footprinting via CWE-348

CAPEC-142 DNS Cache Poisoning via CWE-348

CAPEC-73 User-Controlled Filename via CWE-348

CAPEC-141 Cache Poisoning via CWE-348

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2026-3635 affects Fastify when trustProxy is configured with a restrictive trust function. Attackers can manipulate X-Forwarded-Proto and X-Forwarded-Host headers to bypass intended security measures.

An attacker can connect directly to Fastify, bypassing the trusted proxy, and set the X-Forwarded-Proto and X-Forwarded-Host headers to manipulate the request.protocol and request.host getters.

Questions

What is CVE-2026-3635?

CVE-2026-3635 affects Fastify when trustProxy is configured with a restrictive trust function. Attackers can manipulate X-Forwarded-Proto and X-Forwarded-Host headers to bypass intended security measures.

What is the CVSS score for CVE-2026-3635?

CVE-2026-3635 has CVSS 6.1 (Medium). Vector: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N. EPSS: 0.2%.

Is CVE-2026-3635 actively exploited?

No confirmed active exploitation of CVE-2026-3635 as of 2026-09-25.

How do I remediate CVE-2026-3635?

Priority: MEDIUM. PSIRT: ce714d77-add3-4f53-aff5-83d477b104bb

What systems are affected by CVE-2026-3635?

CVE-2026-3635 affects Fastify Fastify.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Fastify","product":"Fastify","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.