Nitro < 2.13.4 / < 3.0.260429-beta - routeRules Proxy Scope Bypass
Nitro (nitropack < 2.13.4, nitro < 3.0.260429-beta) contains a proxy scope bypass in routeRules (CWE-22). When a route is configured with a proxy and a /** wildcard suffix (e.g. routeRules: { "/api/orders/**": { proxy: { to: "http://upstream/orders/**" } } }), Nitro matches the rule against the raw percent-encoded path, so a request containing an encoded traversal sequence (..%2f) escapes the intended scope and the still-encoded path is forwarded to the upstream. If the upstream decodes %2F to / and resolves .., the attacker reaches resources outside the configured proxy scope, including arbitrary internal files such as /etc/passwd.
PoC 已收录NitroPack
CVSS—EPSS 0.88%