CVE-2026-114060: SvelteKit before 3.0.0 Open Redirect via Enhanced Form Actions

Published Oct 21, 2026
·
Updated

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 <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.

Other sources

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.

— MITRE

Affected Software

2 affected componentsFixes available
npm/@sveltejs/kit<3.0.0
npm/@sveltejs/kit<3.0.0
3.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@sveltejs/kit to a version that resolves this vulnerability.

    Fixed in 3.0.0
  2. Upgrade

    Upgrade @sveltejs/kit to a version that resolves this vulnerability.

    Fixed in 3.0.0
  3. Configuration

    Disable navigation for non-redirect enhanced form results by supplying a custom submission callback to use:enhance.

    SvelteKit enhanced form actions navigation for non-redirect enhanced form results = disabled
  4. Compensating control

    Reject requests whose parsed URL pathname begins with // before route resolution, using a reverse proxy or a SvelteKit handle hook.

Event History

Oct 21, 2026
CVE Published
via MITRE·12:36 AM
Data Sourced
via MITRE·12:36 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:17 AM
DescriptionSeverityWeakness
Oct 23, 2026
Advisory Published
via GitHub·08:58 PM
Data Sourced
via GitHub·08:58 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using @sveltejs/kit before 3.0.0 are exposed when they use enhanced form actions (use:enhance) on routes that accept action paths beginning with a double slash.

2

What must an attacker do to exploit it?

An attacker must craft an action path starting with // and induce a victim to interact with the enhanced form action. The double slash is interpreted as a protocol-relative URL, allowing navigation to an attacker-controlled site.

3

Is user interaction required?

Yes. The affected form result must cause the victim's browser to navigate, so exploitation requires victim interaction.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203