Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-114060 Overview
CVE-2026-114060 is an open redirect vulnerability [CWE-601] in SvelteKit (@sveltejs/kit) versions before 3.0.0. The flaw resides in enhanced form actions that use the use:enhance directive on routes that accept paths beginning with a double slash. Attackers can craft action paths starting with //, which browsers interpret as protocol-relative URLs. When a non-redirect form result returns, SvelteKit navigates the victim to an attacker-controlled domain. The vulnerability requires user interaction, such as clicking a crafted link or submitting a form, to trigger the redirect.
Critical Impact
Attackers can redirect authenticated users of SvelteKit applications to malicious domains, enabling phishing campaigns that leverage the legitimate origin as a launch point.
Affected Products
- SvelteKit (@sveltejs/kit) versions prior to 3.0.0
- Applications using enhanced form actions (use:enhance)
- Routes accepting user-controlled action paths
Discovery Timeline
- 2026-10-21 - CVE-2026-114060 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-114060
Vulnerability Analysis
SvelteKit's use:enhance directive provides progressive enhancement for HTML form submissions. The directive handles form responses on the client side and manages navigation based on the server's action result. When the server returns a non-redirect result, SvelteKit uses the submitted action path to determine the next navigation target.
The framework fails to validate that the action path represents a same-origin location. An attacker who controls the form's action attribute can supply a value beginning with //evil.example.com/path. Browsers treat protocol-relative URLs starting with // as absolute references to external origins, inheriting the current scheme.
The result is navigation away from the trusted SvelteKit application to an attacker-controlled domain. The user's URL bar still briefly reflects the originating site, which supports convincing phishing lures.
Root Cause
The root cause is missing origin validation on action paths handled by use:enhance. SvelteKit treats any string beginning with / as internal, without accounting for the special semantics of a leading //. This mishandling of protocol-relative URL syntax is a classic open redirect pattern tracked under [CWE-601].
Attack Vector
Exploitation requires the attacker to influence an action path reaching a vulnerable route. Typical delivery uses a crafted link that pre-populates a form action or targets a route that reflects path segments into the form action. The victim must interact with the form, matching the user interaction requirement in the CVSS vector. For technical details, see the GitHub Security Advisory and the VulnCheck SvelteKit Advisory.
Detection Methods for CVE-2026-114060
Indicators of Compromise
- Outbound redirects from SvelteKit application responses to unexpected external hostnames
- Form submissions where the action attribute begins with // followed by an external domain
- Server access logs showing requests to routes with path parameters starting with //
- Referrer headers on external domains that trace back to production SvelteKit routes
Detection Strategies
- Audit application source for routes that accept dynamic path segments feeding into form action attributes
- Enumerate @sveltejs/kit dependency versions across build manifests and lockfiles to identify versions prior to 3.0.0
- Add web application firewall rules that reject request paths with a leading double slash on form endpoints
Monitoring Recommendations
- Log and alert on HTTP 3xx responses whose Location header points to non-allowlisted domains
- Track user interaction telemetry for form submissions that result in cross-origin navigation
- Monitor Content Security Policy (CSP) form-action violations, which can surface attempts to post to external origins
How to Mitigate CVE-2026-114060
Immediate Actions Required
- Upgrade @sveltejs/kit to version 3.0.0 or later across all applications and build pipelines
- Inventory routes using use:enhance and confirm no dynamic input flows unchecked into form action attributes
- Deploy a CSP header with a restrictive form-action directive limiting submissions to trusted origins
Patch Information
The maintainers resolved CVE-2026-114060 in SvelteKit 3.0.0. The fix normalizes action paths and rejects or neutralizes protocol-relative values before navigation. Consult the GitHub Security Advisory for upgrade notes and backport guidance.
Workarounds
- Sanitize action path inputs at the route handler, rejecting any value that begins with // or contains a scheme
- Replace use:enhance on affected routes with manual submission handlers that explicitly validate the destination origin
- Apply reverse proxy rewrite rules that collapse leading double slashes in request paths before they reach the SvelteKit server
# Configuration example
npm install @sveltejs/kit@^3.0.0
npm audit --production
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

