GitHub Advisoryadvisory · npm

GHSA-pfhg-q3qv-9q6r SvelteKit: URL redirection to untrusted site via enhanced form submission

LOW Published 2026-10-23 Modified 2026-10-23 Official page ↗
Aliases
CVE-2026-114060
Ecosystem
npm
Packages
@sveltejs/kit
Severity
Low
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-601
Reviewed
2026-10-23

Affected packages

• npm @sveltejs/kit: < 3.0.0 → fixed in 3.0.0

Description

Impact Applications using enhanced form actions (`use:enhance`) on routes that accept paths beginning with `//`, such as catch-all routes, may be vulnerable to an open redirect. Patches A fix has been prepared for `@sveltejs/kit` 3.0.0. Users should upgrade to 3.0.0 or later. The fix preserves leading double slashes in action paths without generating protocol-relative URLs, restricts non-redirect action navigation to the current origin, and includes the origin when comparing action locations with the current page. Workarounds Reject requests whose parsed URL pathname begins with `//` before route resolution, for example in a reverse proxy or a SvelteKit `handle` hook. Alternatively, disable navigation for non-redirect enhanced form results by supplying a custom submission callback: ```svelte ({ update }) => update({ navigate: false })}> ``` This applies non-redirect results to the current page instead of navigating to the action location.

Related

Alias · CVE (1)

  • CVE-2026-114060 SvelteKit (@sveltejs/kit) before 3.0.0 contains an open redirect vulnerability in enhanced form actions (use:enhance) on routes accepting… vulnerability

Weakness · CWE (1)

  • CWE-601 URL Redirection to Untrusted Site weakness

References