Approved changes feed: RSS · Atom
cpe:2.3:a:fastify:fastify:*:*:*:*:*:*:*:*
part: a version: * update: *
| Vendor | Fastify (51747187-798b-5030-972d-b19db43759b4) |
|---|---|
| Product | Fastify (e5289df8-251b-5a99-9d43-63d1c7962611) |
| Edition | * |
| Language | * |
| Software edition | * |
| Target software | * |
| Target hardware | * |
| Other | * |
| Notes | Imported from purl2cpe mapping |
PURL mappings
| PURL | Source | Last updated |
|---|---|---|
pkg:github/fastify/fastify-static |
purl2cpe | 2026-06-01 10:16:32.821574 |
Vulnerability references
| Identifier | cpeApplicability | Submitted | db.gcve.eu details | Rationale |
|---|---|---|---|---|
CVE:CVE-2026-3635 |
vulnerable | 2026-06-03 15:23:33.243683 |
Fastify request.protocol and request.host spoofable via X-Forwarded-Proto/Host from untrusted connections when trustProxy uses restrictive trust function
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 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.
Published: 2026-03-23T13:53:00.386Z
Updated: 2026-03-23T15:30:10.526Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2026-3419 |
vulnerable | 2026-06-03 15:23:32.379759 |
Fastify's Missing End Anchor in "subtypeNameReg" Allows Malformed Content-Types to Pass Validation
MEDIUM (5.3)
Fastify incorrectly accepts malformed `Content-Type` headers containing trailing characters after the subtype token, in violation of RFC 9110 §8.3.1(https://httpwg.org/specs/rfc9110.html#field.content-type). For example, a request sent with Content-Type: application/json garbage passes validation and is processed normally, rather than being rejected with 415 Unsupported Media Type.
When regex-based content-type parsers are in use (a documented Fastify feature), the malformed value is matched against registered parsers using the full string including the trailing garbage. This means a request with an invalid content-type may be routed to and processed by a parser it should never have reached.
Impact:
An attacker can send requests with RFC-invalid Content-Type headers that bypass validity checks, reach content-type parser matching, and be processed by the server. Requests that should be rejected at the validation stage are instead handled as if the content-type were valid.
Workarounds:
Deploy a WAF rule to protect against this
Fix:
The fix is available starting with v5.8.1.
Published: 2026-03-06T17:50:58.714Z
Updated: 2026-03-09T14:55:21.011Z Reference links
|
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2026-33806 |
vulnerable | 2026-06-03 15:20:45.744586 |
fastify vulnerable to Body Schema Validation Bypass via Leading Space in Content-Type Header
HIGH (7.5)
Impact:
Fastify applications using schema.body.content for per-content-type body validation can have validation bypassed entirely by prepending a space to the Content-Type header. The body is still parsed correctly but schema validation is skipped.
This is a regression introduced in fastify >= 5.3.2 by the fix for CVE-2025-32442
Patches:
Upgrade to fastify v5.8.5 or later.
Workarounds:
None. Upgrade to the patched version.
Published: 2026-04-15T00:14:02.376Z
Updated: 2026-04-15T16:13:42.961Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2026-25224 |
vulnerable | 2026-06-03 15:16:54.327427 |
Fastify Vulnerable to DoS via Unbounded Memory Allocation in sendWebStream
LOW (3.7)
Fastify is a fast and low overhead web framework, for Node.js. Prior to version 5.7.3, a denial-of-service vulnerability in Fastify’s Web Streams response handling can allow a remote client to exhaust server memory. Applications that return a ReadableStream (or Response with a Web Stream body) via reply.send() are impacted. A slow or non-reading client can trigger unbounded buffering when backpressure is ignored, leading to process crashes or severe degradation. This issue has been patched in version 5.7.3.
Published: 2026-02-03T21:21:35.437Z
Updated: 2026-02-04T16:20:32.845Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2026-25223 |
vulnerable | 2026-06-03 15:16:54.326062 |
Fastify's Content-Type header tab character allows body validation bypass
HIGH (7.5)
Fastify is a fast and low overhead web framework, for Node.js. Prior to version 5.7.2, a validation bypass vulnerability exists in Fastify where request body validation schemas specified by Content-Type can be completely circumvented. By appending a tab character (\t) followed by arbitrary content to the Content-Type header, attackers can bypass body validation while the server still processes the body as the original content type. This issue has been patched in version 5.7.2.
Published: 2026-02-03T21:21:40.268Z
Updated: 2026-02-04T21:18:16.693Z Reference links
|
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2025-32442 |
vulnerable | 2026-06-03 15:00:40.836007 |
Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass
HIGH (7.5)
Fastify is a fast and low overhead web framework, for Node.js. In versions 5.0.0 to 5.3.0 as well as version 4.29.0, applications that specify different validation strategies for different content types have a possibility to bypass validation by providing a _slightly altered_ content type such as with different casing or altered whitespacing before `;`. This was patched in v5.3.1, but the initial patch did not cover all problems. This has been fully patched in v5.3.2 and v4.29.1. A workaround involves not specifying individual content types in the schema.
Published: 2025-04-18T15:59:06.670Z
Updated: 2025-08-22T20:50:43.059Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2022-41919 |
vulnerable | 2026-06-03 14:48:11.819957 |
Fastify vulnerable to Cross-Site Request Forgery (CSRF) attack via incorrect content type
MEDIUM (4.2)
Fastify is a web framework with minimal overhead and plugin architecture. The attacker can use the incorrect `Content-Type` to bypass the `Pre-Flight` checking of `fetch`. `fetch()` requests with Content-Type’s essence as "application/x-www-form-urlencoded", "multipart/form-data", or "text/plain", could potentially be used to invoke routes that only accepts `application/json` content type, thus bypassing any CORS protection, and therefore they could lead to a Cross-Site Request Forgery attack. This issue has been patched in version 4.10.2 and 3.29.4. As a workaround, implement Cross-Site Request Forgery protection using `@fastify/csrf'.
Published: 2022-11-22T00:00:00.000Z
Updated: 2025-04-23T16:36:24.268Z |
Imported from gcve-enriched-dumps CVE data |
CVE:CVE-2022-39288 |
vulnerable | 2026-06-03 14:47:51.401508 |
Denial of service in Fastify via Content-Type header
HIGH (7.5)
fastify is a fast and low overhead web framework, for Node.js. Affected versions of fastify are subject to a denial of service via malicious use of the Content-Type header. An attacker can send an invalid Content-Type header that can cause the application to crash. This issue has been addressed in commit `fbb07e8d` and will be included in release version 4.8.1. Users are advised to upgrade. Users unable to upgrade may manually filter out http content with malicious Content-Type headers.
Published: 2022-10-10T00:00:00.000Z
Updated: 2025-04-23T16:51:56.095Z |
Imported from gcve-enriched-dumps CVE data |
Contribute
You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.