Description
SvelteKit (@sveltejs/kit) before 3.0.0 contains an open redirect vulnerability in enhanced form actions (use:enhance) on routes accepting paths beginning with a double slash. Attackers can craft action paths starting with // that become protocol-relative URLs, causing non-redirect form results to navigate victims to attacker-controlled sites.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| sveltejs | kit | < 3.0.0 | 3.0.0 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | @sveltejs/kit | < 3.0.0 | 3.0.0 | GHSA-pfhg-q3qv-9q6r |
References
- GitHub Security Advisory (GHSA-pfhg-q3qv-9q6r) vendor-advisory
- VulnCheck Advisory: SvelteKit before 3.0.0 Open Redirect via Enhanced Form Actions third-party-advisory