Description
h3 versions before 2.0.1-rc.18 contain an open redirect vulnerability in the redirectBack() utility that fails to sanitize protocol-relative paths in the Referer header pathname. Attackers can craft a same-origin URL with a double-slash path segment that passes origin validation but produces a Location header interpreted by browsers as a protocol-relative redirect to an external domain.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| h3js | h3 | 2.0.1-rc.17 – < 2.0.1-rc.18 | 2.0.1-rc.18 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | h3 | >= 2.0.1-rc.17, < 2.0.1-rc.18 | 2.0.1-rc.18 | GHSA-fp4x-ggrf-wmc6 |
References
- GitHub Security Advisory (GHSA-fp4x-ggrf-wmc6) vendor-advisory
- VulnCheck Advisory: h3 before 2.0.1-rc.18 Open Redirect via redirectBack() third-party-advisory