All vulnerabilities
CVE-2026-114060GHSA-pfhg-q3qv-9q6r

@sveltejs/kit: SvelteKit: URL redirection to untrusted site via enhanced form submission

sveltejs @sveltejs/kitnpmLibraries & packages
CVSS
2.1Low
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.17%Chance of exploitation activity in the next 30 days, higher than 5% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in3.0.0Fixed versionGitHub
Published21 Oct 2026Updated 23 Oct 2026CVE List

What fixes it

  • 3.0.0@sveltejs/kit, npmGitHubnpm install @sveltejs/kit@3.0.0
  • 3.0.0kitCVE List

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

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:

<form method="POST" use:enhance={() => ({ update }) => update({ navigate: false })}>
  <!-- form fields -->
</form>

This applies non-redirect results to the current page instead of navigating to the action location.

Text from GitHub Advisory Database

Affected versions 3

  • @sveltejs/kit, npm< 3.0.0GitHub
  • kitaffected: all versions before 3.0.0CVE List
  • kitunaffected: 3.0.0CVE List

References 6