CVE-2026-44373: Nitro Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-5w89-w975-hf9q
CVSS 5.3
CWE-22
Published
Advisory Summary

CVE-2026-44373 is a MODERATE (CVSS 5.3) remote code execution vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Nitro libraries in the npm ecosystem. The issue involves nitro has a proxy scope bypass via percent-encoded path traversal in `routerules`. Remediation is available by upgrading affected packages to version 3.0.260429-beta, 2.13.4.

CVE-2026-44373 at a Glance

CVE Identifier CVE-2026-44373
GHSA Identifier GHSA-5w89-w975-hf9q
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Nitro
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-44373

To remediate this vulnerability, upgrade all affected Nitro dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

nitro fixed: 3.0.260429-beta
npm install nitro@3.0.260429-beta
nitropack fixed: 2.13.4
npm install nitropack@2.13.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls nitro

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-44373, inspect your project dependencies using npm:

npm ls nitro

Analyze the terminal output to locate any version of Nitro in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.260429-beta), your application is affected.

Note: The npm ls nitro command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Nitro, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A proxy route rule like: ```ts routeRules: { "/api/orders/**": { proxy: { to: "http://upstream/orders/**" } } } ``` is intended to limit the proxy to URLs under `/api/orders/`. Before the patch, an attacker could bypass that scope by sending percent-encoded path traversal (`..%2f`) in the URL, causing Nitro to forward a request that the upstream resolved outside the configured scope. Example exploit: ``` GET /api/orders/..%2fadmin%2fconfig.json ``` Nitro sees `..%2f` as opaque characters at match time, the `/api/orders/**` rule matched, and the raw path was forwarded to the upstream as `/orders/..%2fadmin/config.json`. An upstream that decodes `%2F` to `/` then resolved `..` and can serve `/admin/config.json` outside the intended scope. ### Are you affected? Users may be affected if **ALL** of the following are true: 1. Their project uses Nitro's `routeRules` with a `proxy` entry (`{ proxy: { to: "..." } }`). 2. The proxy `to` value uses a `/**` wildcard suffix to forward sub-paths. 3. The **upstream** behind the proxy decodes `%2F` as `/` before routing or filesystem lookup. 4. Proxy route rules are _not_ handled natively at CDN (nitro v3 and vercel) Whether the bypass actually leaks data depends on the upstream. Modern JS frameworks keep `%2F` opaque per RFC 3986 and are safe by construction. - **Safe examples:** H3 v2, Express v5, Hono v4 — modern JS frameworks keep `%2F` opaque per RFC 3986. - **Vulnerable examples:** naive imlementations that decodes the URL, static file servers, CGI dispatchers, Python `os.path`-based routing, anything sitting behind another layer that decodes `%2F` (common in microservice meshes). ## Impact Any HTTP path reachable from the Nitro server to the upstream could be requested, regardless of the configured `/**` scope. In typical deployments (API gateway, BFF, microservice proxy) this could expose internal admin endpoints, secrets endpoints, or other services the developer believed the scope rule fenced off. ## Patched versions Upgrade to one of: - [2.13.4](https://github.com/nitrojs/nitro/releases/tag/v2.13.4) or later (https://github.com/nitrojs/nitro/pull/4223) - [3.0.260429-beta](https://github.com/nitrojs/nitro/releases/tag/v3.0.260429-beta) or later (https://github.com/nitrojs/nitro/pull/4222) The fix canonicalizes the incoming pathname before building the upstream URL and rejects requests with `400 Bad Request` if the resolved path would escape the rule's base. The bytes forwarded upstream are unchanged when the request is allowed. > Note: the fix assumes the upstream does not double-decode percent-encoding. If your upstream decodes twice (`%252F → %2F → /`), it remains your responsibility to harden it. **Single-decode is standard**. ## Credits Reported by [@mHe4am](https://github.com/mHe4am) ([@he4am on HackerOne](https://hackerone.com/he4am)) via the [Vercel Open Source](https://hackerone.com/vercel-open-source?type=team) program.

CVE-2026-44373 Affected Nitro Versions

2 component(s)
Fixed Versions:
3.0.260429-beta2.13.4
Product / Package Ecosystem Affected Versions Fixed Version
nitro
npm
< 3.0.260429-beta
3.0.260429-beta
nitropack
npm
< 2.13.4
2.13.4

References

Frequently Asked Questions

What is CVE-2026-44373?
CVE-2026-44373 is a security vulnerability in Nitro involving Nitro has a proxy scope bypass via percent-encoded path traversal in `routeRules` under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Nitro versions are affected?
Affected versions include releases prior to 3.0.260429-beta, 2.13.4 across affected packages: nitro, nitropack.
What version fixes CVE-2026-44373?
Upgrading to 3.0.260429-beta, 2.13.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nitro affected?
Yes, nitro is affected in releases prior to 3.0.260429-beta. Upgrade your dependency to 3.0.260429-beta or later.
Is nitropack affected?
Yes, nitropack is affected in releases prior to 2.13.4. Upgrade your dependency to 2.13.4 or later.
What is the CVSS score of CVE-2026-44373?
CVE-2026-44373 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-44373?
CVE-2026-44373 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check npm dependencies for CVE-2026-44373?
Run the dependency tree command: 'npm ls nitro'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5w89-w975-hf9q",
  "modified" : "2026-05-14T20:42:49Z",
  "published" : "2026-05-06T23:01:27Z",
  "aliases" : [ "CVE-2026-44373" ],
  "summary" : "Nitro has a proxy scope bypass via percent-encoded path traversal in `routeRules`",
  "details" : "A proxy route rule like:\n\n```ts\nrouteRules: {\n  \"/api/orders/**\": { proxy: { to: \"http://upstream/orders/**\" } }\n}\n```\n\nis intended to limit the proxy to URLs under `/api/orders/`. Before the patch, an attacker could bypass that scope by sending percent-encoded path traversal (`..%2f`) in the URL, causing Nitro to forward a request that the upstream resolved outside the configured scope. Example exploit:\n\n```\nGET /api/orders/..%2fadmin%2fconfig.json\n```\n\nNitro sees `..%2f` as opaque characters at match time, the `/api/orders/**` rule matched, and the raw path was forwarded to the upstream as `/orders/..%2fadmin/config.json`. An upstream that decodes `%2F` to  `/` then resolved `..` and can serve `/admin/config.json` outside the intended scope.\n\n### Are you affected?\n\nUsers may be affected if **ALL** of the following are true:\n\n1. Their project uses Nitro's `routeRules` with a `proxy` entry (`{ proxy: { to: \"...\" } }`).\n2. The proxy `to` value uses a `/**` wildcard suffix to forward sub-paths.\n3. The **upstream** behind the proxy decodes `%2F` as `/` before routing or filesystem lookup.\n4. Proxy route rules are _not_ handled natively at CDN (nitro v3 and vercel)\n\nWhether the bypass actually leaks data depends on the upstream. Modern JS frameworks keep `%2F` opaque per RFC 3986 and are safe by construction. \n\n- **Safe examples:** H3 v2, Express v5, Hono v4 — modern JS frameworks keep `%2F` opaque per RFC 3986.\n- **Vulnerable examples:** naive imlementations that decodes the URL, static file servers, CGI dispatchers, Python `os.path`-based routing, anything sitting behind another layer that decodes `%2F` (common in microservice meshes).\n\n## Impact\n\nAny HTTP path reachable from the Nitro server to the upstream could be requested, regardless of the configured `/**` scope. In typical deployments (API gateway, BFF, microservice proxy) this could expose internal admin endpoints, secrets endpoints, or other services the developer believed the scope rule fenced off.\n\n## Patched versions\n\nUpgrade to one of:\n\n- [2.13.4](https://github.com/nitrojs/nitro/releases/tag/v2.13.4) or later (https://github.com/nitrojs/nitro/pull/4223) \n- [3.0.260429-beta](https://github.com/nitrojs/nitro/releases/tag/v3.0.260429-beta) or later (https://github.com/nitrojs/nitro/pull/4222)\n\nThe fix canonicalizes the incoming pathname before building the upstream URL and rejects requests with `400 Bad Request` if the resolved path would escape the rule's base. The bytes forwarded upstream are unchanged when the request is allowed.\n\n> Note: the fix assumes the upstream does not double-decode percent-encoding. If your upstream decodes twice (`%252F → %2F → /`), it remains your responsibility to harden it. **Single-decode is standard**.\n\n## Credits\n\nReported by [@mHe4am](https://github.com/mHe4am) ([@he4am on HackerOne](https://hackerone.com/he4am)) via the [Vercel Open Source](https://hackerone.com/vercel-open-source?type=team) program.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "nitro"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.0.260429-beta"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "nitropack"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.13.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nitrojs/nitro/security/advisories/GHSA-5w89-w975-hf9q"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-44373"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nitrojs/nitro/pull/4222"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nitrojs/nitro/pull/4223"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nitrojs/nitro"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nitrojs/nitro/releases/tag/v2.13.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nitrojs/nitro/releases/tag/v3.0.260429-beta"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-06T23:01:27Z",
    "nvd_published_at" : "2026-05-13T21:16:48Z"
  }
}