CVE-2026-3635
Last modified
CVE-2026-3635 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 0.12% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Fastify | Fastify | < 5.8.3 |
References
- https://cna.openjsf.org/security-advisories.htmlThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2026-3635Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-3635?
How severe is CVE-2026-3635?
How do I fix CVE-2026-3635?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-3632A flaw was found in libsoup, a library used by applications …5.5
- CVE-2026-36324SourceCodester Doctor Appointment System 1.0 is vulnerable t…6.1
- CVE-2026-3633A flaw was found in libsoup. A remote attacker, by controlli…6.5
- CVE-2026-3634A flaw was found in libsoup. An attacker controlling the val…6.5
- CVE-2026-36340An issue in Krayin CRM v.2.1.5 and fixed in v.2.1.6 allows a…8.1
- CVE-2026-36341Cross-Site Scripting (XSS) vulnerability exists in Webkul Kr…5.4
- CVE-2026-36355The rtl8192cd Wi-Fi kernel driver in the Realtek rtl819x Jun…7.7
- CVE-2026-36356The GoAhead web server on MeiG Smart FORGE_SLT711 devices (f…9.1
- CVE-2026-36358Cross Site Scripting vulnerability in Juzaweb CMS v.5.0.0 al…5.4
- CVE-2026-3636Mattermost versions 11.6.x <= 11.6.0, 11.5.x <= 11.5.3, 11.4…4.3
- CVE-2026-36365An issue in Lymphatus caesium-image-compressor All versions …7.8
- CVE-2026-3637Mattermost versions 11.5.x <= 11.5.1, 10.11.x <= 10.11.13, 1…4.3
Are you affected by CVE-2026-3635?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
