Skip to main content

Nitro CVE-2026-44373

MEDIUM
Path Traversal (CWE-22)
2026-05-06 https://github.com/nitrojs/nitro GHSA-5w89-w975-hf9q
5.3
CVSS 3.1 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI
3.7 LOW

Exploitation succeeds only when the upstream decodes %2F - a target-side condition beyond attacker control - warranting AC:H over the official AC:L.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

3
Source Code Evidence Fetched
Jul 23, 2026 - 23:07 vuln.today
Analysis Generated
Jul 23, 2026 - 23:07 vuln.today
CVE Published
May 06, 2026 - 23:01 nvd
MEDIUM 5.3

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 21 npm packages depend on nitro (11 direct, 10 indirect)
  • 805 npm packages depend on nitropack (173 direct, 643 indirect)

Ecosystem-wide dependent count for version 3.0.260429-beta and other introduced versions.

DescriptionGitHub Advisory

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 or later (https://github.com/nitrojs/nitro/pull/4223)
  • 3.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 (@he4am on HackerOne) via the Vercel Open Source program.

AnalysisAI

Proxy scope bypass in Nitro (npm packages nitropack and nitro) allows unauthenticated remote attackers to reach upstream paths outside the configured routeRules wildcard scope by embedding percent-encoded path traversal sequences (..%2f) in HTTP requests. Nitro's route-rule matcher treats %2F as an opaque literal and matches the rule, then forwards the raw un-canonicalized path to the upstream; upstreams that decode %2F to / then resolve the .. segment and serve resources the developer intended to be fenced off, such as internal admin or secrets endpoints. No public exploit code is identified at time of analysis and EPSS is low at 0.04% (13th percentile), but the official advisory includes a precise proof-of-concept request and the exploit prerequisite (upstream %2F decoding) is common in static file servers, CGI handlers, Python os.path routers, and microservice mesh layers.

Technical ContextAI

Nitro is a universal JavaScript server framework (npm packages pkg:npm/nitropack prior to 2.13.4 and pkg:npm/nitro prior to 3.0.260429-beta) that underpins the Nuxt.js ecosystem and supports declarative routeRules for proxy configuration. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory): a match/forward differential arises because the WHATWG URL parser - used internally by Nitro - intentionally keeps %2F and %5C opaque in path segments per RFC 3986, so the glob matcher sees /api/orders/..%2fadmin%2fconfig.json as within scope, while the upstream receives the raw path and decodes %2F to / before resolving ... The fix (PR #4222 for v3, PR #4223 for v2) introduces an isPathInScope function that pre-decodes %2F and %5C before passing the pathname to new URL for dot-segment canonicalization, then rejects any request whose resolved canonical path escapes the rule base with HTTP 400. The vulnerability is a classic proxy scope bypass - not a flaw in the upstream, but a mismatch between how Nitro evaluates the rule and what it forwards.

RemediationAI

Upgrade nitropack to version 2.13.4 or later (https://github.com/nitrojs/nitro/releases/tag/v2.13.4, patched via PR #4223 at https://github.com/nitrojs/nitro/pull/4223), or upgrade nitro to version 3.0.260429-beta or later (https://github.com/nitrojs/nitro/releases/tag/v3.0.260429-beta, patched via PR #4222 at https://github.com/nitrojs/nitro/pull/4222). The patch canonicalizes the incoming pathname before scope evaluation and returns HTTP 400 to the client if the resolved path would escape the rule base, with no change to the forwarded bytes when the request is permitted. If an immediate upgrade is not possible, configure the upstream to keep %2F opaque per RFC 3986 (switching to H3 v2, Express v5, or Hono v4 eliminates the decode differential entirely). Alternatively, deploy a WAF or edge proxy in front of Nitro that normalizes or rejects encoded slash sequences before they reach Nitro's routing layer - note this adds latency and may break legitimate use cases that require encoded slashes in paths. Do not rely on the patch to protect against double-decoding upstreams (%252F → %2F → /): if your upstream double-decodes, harden it independently as the Nitro fix only addresses single-decode scenarios.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Share

CVE-2026-44373 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy