{"id":"GHSA-pfhg-q3qv-9q6r","summary":"SvelteKit: URL redirection to untrusted site via enhanced form submission","details":"### Impact\nApplications 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.\n\n### Patches\nA fix has been prepared for `@sveltejs/kit` 3.0.0. Users should upgrade to 3.0.0 or later.\n\nThe 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.\n\n### Workarounds\nReject requests whose parsed URL pathname begins with `//` before route resolution, for example in a reverse proxy or a SvelteKit `handle` hook.\n\nAlternatively, disable navigation for non-redirect enhanced form results by supplying a custom submission callback:\n\n```svelte\n\u003cform method=\"POST\" use:enhance={() =\u003e ({ update }) =\u003e update({ navigate: false })}\u003e\n  \u003c!-- form fields --\u003e\n\u003c/form\u003e\n```\n\nThis applies non-redirect results to the current page instead of navigating to the action location.","aliases":["CVE-2026-114060"],"modified":"2026-10-23T21:15:03.741776060Z","published":"2026-10-23T20:58:24Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-601"],"severity":"LOW","github_reviewed":true,"github_reviewed_at":"2026-10-23T20:58:24Z"},"references":[{"type":"WEB","url":"https://github.com/sveltejs/kit/security/advisories/GHSA-pfhg-q3qv-9q6r"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-114060"},{"type":"WEB","url":"https://github.com/sveltejs/kit/commit/91aae3547c6cd2935d79c09a53e27c740100000a"},{"type":"PACKAGE","url":"https://github.com/sveltejs/kit"},{"type":"WEB","url":"https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.0.0"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/sveltekit-before-3.0.0-open-redirect-via-enhanced-form-actions"}],"affected":[{"package":{"name":"@sveltejs/kit","ecosystem":"npm","purl":"pkg:npm/%40sveltejs/kit"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.0.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-pfhg-q3qv-9q6r/GHSA-pfhg-q3qv-9q6r.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"}]}