CVE-2026-114060: SvelteKit: URL redirection to untrusted site via enhanced form submission
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.
Published Oct 23, 2026
Affected packages
@sveltejs/kit
- Ecosystem
- npm
- Affected
- < 3.0.0
- Fixed in
- 3.0.0
- Check
npm ls @sveltejs/kit
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://github.com/sveltejs/kit/security/advisories/GHSA-pfhg-q3qv-9q6r
- https://nvd.nist.gov/vuln/detail/CVE-2026-114060
- https://github.com/sveltejs/kit/commit/91aae3547c6cd2935d79c09a53e27c740100000a
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected]
- https://www.vulncheck.com/advisories/sveltekit-before-3.0.0-open-redirect-via-enhanced-form-actions
- https://github.com/advisories/GHSA-pfhg-q3qv-9q6r
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-128116
SvelteKit: Protocol-relative module import during server-side route resolution allows cross-origin script execution
medium5.3Nov 16, 2026CVE-2026-128118
SvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically replaced in client bundle
high7.5Nov 16, 2026CVE-2026-128119
SvelteKit: Private `query.batch` functions could collide, producing unexpected parameter / function combinations
medium5.9Nov 16, 2026CVE-2026-128120
SvelteKit: DoS while parsing form data from a remote functions `form`
high7.5Nov 16, 2026CVE-2026-128117
SvelteKit: adapter-node crashes with an unhandled URIError when `reroute` rewrites malformed pathnames
medium5.9Nov 13, 2026CVE-2026-114061
SvelteKit : XSS via untrusted cache-control header in prerendered page
lowOct 23, 2026
