CVEBrief

Home / fastify / fastify / CVE-2026-3635

CVE-2026-3635: is it exploited, and which versions of fastify are affected and fixed?

CVE-2026-3635 is an use of Less Trusted Source vulnerability in fastify. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: fastify before 5.8.3 (GitHub advisory GHSA-444r-cwp2-x5xf). Fixed in 5.8.3 (GitHub advisory GHSA-444r-cwp2-x5xf). Severity: Medium (6.1, CVSS 3.1, from openjs).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:12 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 11:38 UTC
Affected
fastify before 5.8.3
GitHub advisory GHSA-444r-cwp2-x5xf
Fixed in
5.8.3
GitHub advisory GHSA-444r-cwp2-x5xf
Severity
Medium 6.1
CVSS 3.1 from openjs
Exploit odds (EPSS)
0.17% in 30 days
higher than 6% of CVEs; FIRST, December 2, 2026

What is CVE-2026-3635?

Fastify request.protocol and request.host spoofable via X-Forwarded-Proto/Host from untrusted connections when trustProxy uses restrictive trust function

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.

From the CVE record by openjs, last updated March 23, 2026, 15:30 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
fastifyfastifythrough 5.8.25.8.3

As the CVE record by openjs states it, last updated March 23, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
npmfastify< 5.8.35.8.3GHSA-444r-cwp2-x5xf

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 25, 2026. Summary: fastify: request.protocol and request.host Spoofable via X-Forwarded-Proto/Host from Untrusted Connections.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
fastifyfastifybefore 5.8.3application

NVD analysis (status Analyzed), last modified June 17, 2026, 10:43 UTC.

How severe is CVE-2026-3635?

ScoreVersionVectorSource
Medium 6.1CVSS 3.1CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:Nopenjs

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2026-3635 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: partial (CISA ADP, March 23, 2026)
EPSS
0.17% probability of exploitation activity in the next 30 days, percentile 6.2 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

Who found and reported it?

As published in the CVE record; contact details are removed.

When was it published, and where is the official record?

Reserved
March 6, 2026
Published
March 23, 2026, 13:53 UTC
CVE record updated
March 23, 2026, 15:30 UTC by openjs
NVD
Analyzed, last modified June 17, 2026, 10:43 UTC
Last checked
CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:12 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect fastify?

Every CVE in fastify

Questions about CVE-2026-3635

Is CVE-2026-3635 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 0.17% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of fastify are affected by CVE-2026-3635?

fastify before 5.8.3, per the GitHub advisory GHSA-444r-cwp2-x5xf. The tables above give every range the sources list.

Which version fixes CVE-2026-3635?

5.8.3, per the GitHub advisory GHSA-444r-cwp2-x5xf. Check the vendor's advisory before you rely on it.

How severe is CVE-2026-3635?

Medium (6.1, CVSS 3.1, from openjs). The severity table above shows each score with its source.

Where is the official record of CVE-2026-3635?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.