Skip to content
Heist/ feed
Back to feed
High

@fastify/middie standalone engine vulnerable to Denial of Service via malformed percent-encoded paths

Type: advisorySources: OSV

@fastify/middie versions 9.1.0 through 9.3.2 fail to guard the URL normalization step used by the standalone engine when incoming request paths contain malformed percent-encoded sequences. Inputs such as an incomplete percent escape or a truncated multibyte sequence cause the underlying decoder to throw synchronously, and the exception escapes the middie normalize step and terminates the Node.js process. The bypass affects applications that call middie.run directly on the standalone engine API, causing an immediate denial of service for all connected clients until restart. Applications using the Fastify plugin path are not affected because Fastifys error handler catches the exception. Patches: upgrade to @fastify/middie 9.3.3. Workarounds: migrate from the standalone engine API to the Fastify plugin path, where the framework error handler catches the exception.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-14181
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 20:05 UTC · Revision 1

Source evidence

@fastify/middie standalone engine vulnerable to Denial of Service via malformed percent-encoded paths

core-osv · Original source

Published 1 Jul 2026, 11:42 UTC

@fastify/middie versions 9.1.0 through 9.3.2 fail to guard the URL normalization step used by the standalone engine when incoming request paths contain malformed percent-encoded sequences. Inputs such as an incomplete percent escape or a truncated multibyte sequence cause the underlying decoder to throw synchronously, and the exception escapes the middie normalize step and terminates the Node.js process. The bypass affects applications that call middie.run directly on the standalone engine API, causing an immediate denial of service for all connected clients until restart. Applications using the Fastify plugin path are not affected because Fastifys error handler catches the exception. Patches: upgrade to @fastify/middie 9.3.3. Workarounds: migrate from the standalone engine API to the Fastify plugin path, where the framework error handler catches the exception.

osv:CVE-2026-14181
Complete source record
{
  "id": "2664fbaae37e7705720b79481e946f5852a9b204f79a4c4f663b7ee80a568a6e",
  "url": "https://osv.dev/vulnerability/CVE-2026-14181",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "@fastify/middie standalone engine vulnerable to Denial of Service via malformed percent-encoded paths",
    "summary": "@fastify/middie versions 9.1.0 through 9.3.2 fail to guard the URL normalization step used by the standalone engine when incoming request paths contain malformed percent-encoded sequences. Inputs such as an incomplete percent escape or a truncated multibyte sequence cause the underlying decoder to throw synchronously, and the exception escapes the middie normalize step and terminates the Node.js process. The bypass affects applications that call middie.run directly on the standalone engine API, causing an immediate denial of service for all connected clients until restart. Applications using the Fastify plugin path are not affected because Fastifys error handler catches the exception. Patches: upgrade to @fastify/middie 9.3.3. Workarounds: migrate from the standalone engine API to the Fastify plugin path, where the framework error handler catches the exception.",
    "evidence": "osv:CVE-2026-14181",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-14181",
      "aliases": [
        "CVE-2026-14181",
        "GHSA-qcc9-jh8q-47vh"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/fastify/middie",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8de54e35035cefa5ca13fd9f06c7b38185038a0e"
                },
                {
                  "fixed": "e038188b33b9436e1be9f9d1c1920416ec6c18f1"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "9.1.0"
                      },
                      {
                        "fixed": "9.3.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "cpe": "cpe:2.3:a:fastify:fastify\\/middie:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "9.1.0"
                      },
                      {
                        "fixed": "9.3.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v9.3.2",
            "v9.3.1",
            "v9.3.0",
            "v9.2.0",
            "v9.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-14181.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.502946876Z",
      "provider": "osv",
      "references": [
        "https://cna.openjsf.org/security-advisories.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/14xxx/CVE-2026-14181.json",
        "https://github.com/fastify/middie/security/advisories/GHSA-qcc9-jh8q-47vh",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-14181"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-248"
        ],
        "cna_assigner": "openjs",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/14xxx/CVE-2026-14181.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-14181",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 520283,
  "published_at": "2026-07-01T11:42:49.874+00:00"
}