CVEMETERBack to radar
OFFICIAL RECORD · JavaScript packages

CVE-2026-3635

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 6.1 · medium

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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.167% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 6.1 · published by openjs
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
Assessment source · checked 2026-11-19T12:58:26.419Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:25:55.090ZCISA KEV
cvssverified2026-11-19T12:58:26.419ZCVE Program
epssverified2026-11-19T16:04:49.616ZFIRST EPSS
patchesverified2026-11-19T12:52:30.987ZOSV
affectedverified2026-11-19T12:58:26.419ZCVE Program
lifecycleverified2026-11-19T12:58:26.419ZCVE Program

Affected versions and configuration

fastify fastify; default status: unaffected: 0 to ≤ 5.8.2 [affected; scheme: semver]; 5.8.3 [unaffected; scheme: semver]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "fastify",
      "product": "fastify",
      "versions": [
        {
          "status": "affected",
          "version": "0",
          "versionType": "semver",
          "lessThanOrEqual": "5.8.2"
        },
        {
          "status": "unaffected",
          "version": "5.8.3",
          "versionType": "semver"
        }
      ],
      "packageURL": "pkg:npm/fastify",
      "defaultStatus": "unaffected"
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2026-3635",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2026-03-23T15:29:15.532885Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2026-03-23T15:30:10.526Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-444r-cwp2-x5xf",
  "aliases": [
    "CVE-2026-3635"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.8.3"
            }
          ]
        }
      ],
      "package": {
        "name": "fastify",
        "purl": "pkg:npm/fastify",
        "ecosystem": "npm"
      },
      "versions": [],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-444r-cwp2-x5xf/GHSA-444r-cwp2-x5xf.json",
        "last_known_affected_version_range": "<= 5.8.2"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/fastify/fastify/security/advisories/GHSA-444r-cwp2-x5xf",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-3635",
      "type": "ADVISORY"
    },
    {
      "url": "https://cna.openjsf.org/security-advisories.html",
      "type": "WEB"
    },
    {
      "url": "https://github.com/fastify/fastify",
      "type": "PACKAGE"
    },
    {
      "url": "https://github.com/fastify/fastify/releases/tag/v5.8.3",
      "type": "WEB"
    },
    {
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-3635",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-348"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": "2026-03-23T14:16:34Z",
    "github_reviewed_at": "2026-03-25T19:32:28Z"
  }
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundarynpm / packagefastifyNot a distribution channel5.8.3Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history