Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. nitropack
  4. ›
  5. CVE-2026-44372

CVE-2026-44372: Nitro has an Open Redirect via Protocol-Relative URL Bypass in Wildcard Route Rules

May 6, 2026 (updated June 9, 2026)

A redirect route rule like:

routeRules: {
"/legacy/**": { redirect: "/**" }
}

is intended to rewrite paths within the same host. Before the patch, an attacker could turn the rewrite into a cross-host redirect by sliding an extra slash in after the rule prefix. Example exploit:

GET /legacy//evil.com

Nitro stripped /legacy from the matched pathname and joined the remainder against the rule’s target. The remainder was //evil.com, which the join preserved verbatim, so Nitro responded with Location: //evil.com. Browsers resolve //evil.com as a protocol-relative URL against the current scheme, sending the user to https://evil.com.

References

  • github.com/advisories/GHSA-9phm-9p8f-hw5m
  • github.com/nitrojs/nitro/pull/4236
  • github.com/nitrojs/nitro/releases/tag/v2.13.4
  • github.com/nitrojs/nitro/releases/tag/v3.0.260429-beta
  • github.com/nitrojs/nitro/security/advisories/GHSA-9phm-9p8f-hw5m
  • github.com/unjs/ufo/commit/5cd9e676711af3f4e4b5398ddf6ca8d52c1c7e1f
  • nvd.nist.gov/vuln/detail/CVE-2026-44372

Code Behaviors & Features

Detect and mitigate CVE-2026-44372 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.13.4

Fixed versions

  • 2.13.4

Solution

Upgrade to version 2.13.4 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

npm/nitropack/CVE-2026-44372.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:15 +0000.