Skip to content

fastify-4.23.2.tgz: 11 vulnerabilities (highest severity is: 7.5) #530

Description

@mend-bolt-for-github
Vulnerable Library - fastify-4.23.2.tgz

Library home page: https://registry.npmjs.org/fastify/-/fastify-4.23.2.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Vulnerabilities

Vulnerability Severity CVSS Dependency Type Fixed in (fastify version) Remediation Possible**
CVE-2026-6322 High 7.5 fast-uri-2.2.0.tgz Transitive N/A*
CVE-2026-6321 High 7.5 fast-uri-2.2.0.tgz Transitive 5.0.0
CVE-2026-47219 High 7.5 find-my-way-7.6.2.tgz Transitive N/A*
CVE-2026-25223 High 7.5 fastify-4.23.2.tgz Direct https://github.com/fastify/fastify.git - v5.7.2
CVE-2026-18446 High 7.5 fast-uri-2.2.0.tgz Transitive 5.0.0
CVE-2026-3635 Medium 6.1 fastify-4.23.2.tgz Direct 5.8.3
CVE-2026-18504 Medium 5.4 fastify-4.23.2.tgz Direct 5.12.1
CVE-2024-47764 Medium 5.3 cookie-0.5.0.tgz Transitive 4.24.0
CVE-2024-45813 Medium 5.3 find-my-way-7.6.2.tgz Transitive N/A*
CVE-2026-25224 Low 3.7 fastify-4.23.2.tgz Direct 5.7.3
CVE-2025-69873 Low 2.9 ajv-8.12.0.tgz Transitive N/A*

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2026-6322

Vulnerable Library - fast-uri-2.2.0.tgz

Dependency free RFC 3986 URI toolbox

Library home page: https://registry.npmjs.org/fast-uri/-/fast-uri-2.2.0.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • fastify-4.23.2.tgz (Root Library)
    • fast-json-stringify-5.7.0.tgz
      • fast-uri-2.2.0.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

fast-uri normalize() decoded percent-encoded authority delimiters inside the host component and then re-emitted them as raw delimiters during serialization. A host that combined an allowed domain, an encoded at-sign, and a different domain was re-emitted with the at-sign as a raw userinfo separator, changing the URI's authority to the second domain. Applications that normalize untrusted URLs before host allowlist checks, redirect validation, or outbound request routing can be steered to a different authority than the input appeared to specify. Versions <= 3.1.1 are affected. Update to 3.1.2 or later.

Publish Date: 2026-05-05

URL: CVE-2026-6322

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: High
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-05-05

Fix Resolution: https://github.com/fastify/fast-uri.git - v3.1.2

Step up your Open Source Security Game with Mend here

CVE-2026-6321

Vulnerable Library - fast-uri-2.2.0.tgz

Dependency free RFC 3986 URI toolbox

Library home page: https://registry.npmjs.org/fast-uri/-/fast-uri-2.2.0.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • fastify-4.23.2.tgz (Root Library)
    • fast-json-stringify-5.7.0.tgz
      • fast-uri-2.2.0.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

fast-uri decoded percent-encoded path separators and dot segments before applying dot-segment removal in its normalize() and equal() functions. Encoded path data was treated like real slashes and parent-directory references, so distinct URIs could collapse onto the same normalized path. Applications that normalize or compare attacker-controlled URLs to enforce path-based policy can be bypassed, with a path that appears confined under an allowed prefix normalizing to a different location. Versions <= 3.1.0 are affected. Update to 3.1.1 or later.

Publish Date: 2026-05-04

URL: CVE-2026-6321

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: High
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-q3j6-qgpj-74h6

Release Date: 2026-05-04

Fix Resolution (fast-uri): 3.1.1

Direct dependency fix Resolution (fastify): 5.0.0

Step up your Open Source Security Game with Mend here

CVE-2026-47219

Vulnerable Library - find-my-way-7.6.2.tgz

Library home page: https://registry.npmjs.org/find-my-way/-/find-my-way-7.6.2.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • fastify-4.23.2.tgz (Root Library)
    • find-my-way-7.6.2.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

find-my-way is a framework-independent HTTP router that internally uses a Radix Tree and supports route parameters and wildcards. Versions prior to 9.7.0 are vulnerable to remotely triggerable DoS in find-my-way when it is used with Node's HTTP/2 server. The lookup() function passes req.method into find(), and find() indexes this.trees[method]. Since this.trees is a normal object, HTTP/2 method values like constructor, toString, or proto can resolve inherited object properties instead of returning undefined. The code then treats that value like a router node and crashes when it reaches currentNode.prefix.length. This issue has been fixed in version 9.0.7.
Mend Note: The description of this vulnerability differs from MITRE.

Publish Date: 2026-07-28

URL: CVE-2026-47219

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-07-23

Fix Resolution: find-my-way - 9.7.0,https://github.com/delvedor/find-my-way.git - v9.7.0

Step up your Open Source Security Game with Mend here

CVE-2026-25223

Vulnerable Library - fastify-4.23.2.tgz

Library home page: https://registry.npmjs.org/fastify/-/fastify-4.23.2.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • fastify-4.23.2.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

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.

Publish Date: 2026-02-03

URL: CVE-2026-25223

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: High
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-02-03

Fix Resolution: https://github.com/fastify/fastify.git - v5.7.2

Step up your Open Source Security Game with Mend here

CVE-2026-18446

Vulnerable Library - fast-uri-2.2.0.tgz

Dependency free RFC 3986 URI toolbox

Library home page: https://registry.npmjs.org/fast-uri/-/fast-uri-2.2.0.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • fastify-4.23.2.tgz (Root Library)
    • fast-json-stringify-5.7.0.tgz
      • fast-uri-2.2.0.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

fast-uri before 4.1.2, 3.1.5, and 2.4.4 requires a literal double forward slash to recognize a URI authority, so a reference that uses a backslash based introducer in place of it (backslash backslash, forward slash backslash, or backslash forward slash) is parsed with no authority and folds into the path. Node's native WHATWG URL parser instead treats a backslash as interchangeable with a forward slash for special schemes, so the two parsers extract different hosts from the same input. Applications that use fast-uri to enforce host based policy such as allowlists, SSRF filtering, or redirect validation before passing the same URL into Node's URL or fetch consumers can be steered to an unintended host. Upgrade to fast-uri 4.1.2, 3.1.5, or 2.4.4.

Publish Date: 2026-07-31

URL: CVE-2026-18446

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: High
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-7p8r-x3mc-p8w7

Release Date: 2026-07-31

Fix Resolution (fast-uri): 2.4.4

Direct dependency fix Resolution (fastify): 5.0.0

Step up your Open Source Security Game with Mend here

CVE-2026-3635

Vulnerable Library - fastify-4.23.2.tgz

Library home page: https://registry.npmjs.org/fastify/-/fastify-4.23.2.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • fastify-4.23.2.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

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.

Publish Date: 2026-03-23

URL: CVE-2026-3635

CVSS 3 Score Details (6.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Adjacent
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: None
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-444r-cwp2-x5xf

Release Date: 2026-03-23

Fix Resolution: 5.8.3

Step up your Open Source Security Game with Mend here

CVE-2026-18504

Vulnerable Library - fastify-4.23.2.tgz

Library home page: https://registry.npmjs.org/fastify/-/fastify-4.23.2.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • fastify-4.23.2.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

fastify is a fast and low overhead web framework for Node.js. Versions of fastify before 5.12.1 are affected by a schema validation bypass when a request body schema targets a root primitive value. When the schema validates a top-level primitive such as an integer, Ajv can coerce a JSON string into the expected type during validation, but Fastify does not replace the root request body with the coerced value, so the route handler receives the original unvalidated string. As a result, a request that should have failed validation can reach application logic with a value that does not satisfy the schema, which can undermine integrity and access-control checks that rely on the validated type. Users should upgrade to fastify 5.12.1, which fixes the mismatch. No known workarounds are available.

Publish Date: 2026-08-18

URL: CVE-2026-18504

CVSS 3 Score Details (5.4)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: Low
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-w2qp-rph6-63g4

Release Date: 2026-08-18

Fix Resolution: 5.12.1

Step up your Open Source Security Game with Mend here

CVE-2024-47764

Vulnerable Library - cookie-0.5.0.tgz

HTTP server cookie parsing and serialization

Library home page: https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • fastify-4.23.2.tgz (Root Library)
    • light-my-request-5.10.0.tgz
      • cookie-0.5.0.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

cookie is a basic HTTP cookie parser and serializer for HTTP servers. The cookie name could be used to set other fields of the cookie, resulting in an unexpected cookie value. A similar escape can be used for path and domain, which could be abused to alter other fields of the cookie. Upgrade to 0.7.0, which updates the validation for name, path, and domain.

Publish Date: 2024-10-04

URL: CVE-2024-47764

CVSS 3 Score Details (5.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-pxg6-pf52-xh8x

Release Date: 2024-10-04

Fix Resolution (cookie): 0.7.0

Direct dependency fix Resolution (fastify): 4.24.0

Step up your Open Source Security Game with Mend here

CVE-2024-45813

Vulnerable Library - find-my-way-7.6.2.tgz

Library home page: https://registry.npmjs.org/find-my-way/-/find-my-way-7.6.2.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • fastify-4.23.2.tgz (Root Library)
    • find-my-way-7.6.2.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

find-my-way is a fast, open source HTTP router, internally using a Radix Tree (aka compact Prefix Tree), supports route params, wildcards, and it's framework independent. A bad regular expression is generated any time one has two parameters within a single segment, when adding a "-" at the end, like "/:a-:b-". This may cause a denial of service in some instances. Users are advised to update to find-my-way v8.2.2 or v9.0.1. or subsequent versions. There are no known workarounds for this issue.
Mend Note: The description of this vulnerability differs from MITRE.

Publish Date: 2024-09-18

URL: CVE-2024-45813

CVSS 3 Score Details (5.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-rrr8-f88r-h8q6

Release Date: 2024-09-18

Fix Resolution: find-my-way - 9.0.1,find-my-way - 8.2.2

Step up your Open Source Security Game with Mend here

CVE-2026-25224

Vulnerable Library - fastify-4.23.2.tgz

Library home page: https://registry.npmjs.org/fastify/-/fastify-4.23.2.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • fastify-4.23.2.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

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.

Publish Date: 2026-02-03

URL: CVE-2026-25224

CVSS 3 Score Details (3.7)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-mrq3-vjjr-p77c

Release Date: 2026-02-03

Fix Resolution: 5.7.3

Step up your Open Source Security Game with Mend here

CVE-2025-69873

Vulnerable Library - ajv-8.12.0.tgz

Library home page: https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz

Sample Path to Dependency File: /package.json

Path to vulnerable library: /package.json

Dependency Hierarchy:

  • fastify-4.23.2.tgz (Root Library)
    • fast-json-stringify-5.7.0.tgz
      • ajv-8.12.0.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

ajv (Another JSON Schema Validator) before 8.18.0 is vulnerable to Regular Expression Denial of Service (ReDoS) when the $data option is enabled. The pattern keyword accepts runtime data via JSON Pointer syntax ($data reference), which is passed directly to the JavaScript RegExp() constructor without validation. An attacker can inject a malicious regex pattern (e.g., "^(a|a)*$") combined with crafted input to cause catastrophic backtracking. A 31-character payload causes approximately 44 seconds of CPU blocking, with each additional character doubling execution time. This enables complete denial of service with a single HTTP request against any API using ajv with $data: true for dynamic schema validation. This issue is also fixed in version 6.14.0.

Publish Date: 2026-02-11

URL: CVE-2025-69873

CVSS 3 Score Details (2.9)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Local
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-2g4f-4pwh-qvx6

Release Date: 2026-02-11

Fix Resolution: https://github.com/ajv-validator/ajv.git - v8.18.0,https://github.com/ajv-validator/ajv.git - v6.14.0

Step up your Open Source Security Game with Mend here

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions