Vulnerabilities/

Nitro has a proxy scope bypass via percent-encoded path traversal in `routeRules`

Severity:
Medium

Description

A proxy route rule like:

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:

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.

Recommendation

Update the nitropack package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
nitropack
Anything's wrong? Let us know Last updated on May 14, 2026