{"id":"GHSA-pfhg-q3qv-9q6r","revision":"abaf46c6332344409a919ed18b565681","records":[{"revision":"abaf46c6332344409a919ed18b565681","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-pfhg-q3qv-9q6r","aliases":["CVE-2026-114060"],"title":"SvelteKit: URL redirection to untrusted site via enhanced form submission","description":"### 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<form method=\"POST\" use:enhance={() => ({ update }) => update({ navigate: false })}>\n  <!-- form fields -->\n</form>\n```\n\nThis applies non-redirect results to the current page instead of navigating to the action location.","state":0,"publishedAt":"2026-10-23T20:58:24+00:00","modifiedAt":"2026-10-23T21:15:03.7417761+00:00","affected":[{"ecosystem":"npm","name":"@sveltejs/kit","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.0.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":null,"severity":null},{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"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","https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.0.0","https://www.vulncheck.com/advisories/sveltekit-before-3.0.0-open-redirect-via-enhanced-form-actions"],"sourceUrl":"https://github.com/advisories/GHSA-pfhg-q3qv-9q6r","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-pfhg-q3qv-9q6r","identifiers":["GHSA-pfhg-q3qv-9q6r","CVE-2026-114060"]},"retained":false,"historicalAffected":[]}],"coverage":[]}