Nitro CVE-2026-44373
MEDIUMSeverity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Exploitation succeeds only when the upstream decodes %2F - a target-side condition beyond attacker control - warranting AC:H over the official AC:L.
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
3Blast Radius
ecosystem impact- 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:
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.jsonNitro 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:
- Their project uses Nitro's
routeRuleswith aproxyentry ({ proxy: { to: "..." } }). - The proxy
tovalue uses a/**wildcard suffix to forward sub-paths. - The upstream behind the proxy decodes
%2Fas/before routing or filesystem lookup. - 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
%2Fopaque 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.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
GHSA-5w89-w975-hf9q