CVE-2026-128116: SvelteKit: Protocol-relative module import during server-side route resolution allows cross-origin script execution
If an attacker could, using some form of social engineering or other exploit, get a user to use client-side navigation to navigate to a specially-crafted link, the attacker could cause code from another domain to be imported and run on the user's machine. This only affected apps with router.resolution: 'server'.
Published Nov 16, 2026
Affected packages
@sveltejs/kit
- Ecosystem
- npm
- Affected
- >= 3.0.0, < 3.1.1
- Fixed in
- 3.1.1
- Check
npm ls @sveltejs/kit
@sveltejs/kit
- Ecosystem
- npm
- Affected
- < 2.70.4
- Fixed in
- 2.70.4
- Check
npm ls @sveltejs/kit
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
If an attacker could, using some form of social engineering or other exploit, get a user to use client-side navigation to navigate to a specially-crafted link, the attacker could cause code from another domain to be imported and run on the user's machine. This only affected apps with router.resolution: 'server'.
References
- https://github.com/sveltejs/kit/security/advisories/GHSA-rqp5-r3wg-vg35
- https://nvd.nist.gov/vuln/detail/CVE-2026-128116
- https://github.com/sveltejs/kit/pull/17620
- https://github.com/sveltejs/kit/commit/0a2e58cbccdd46cac20aa5af4e2edf17e0da11dd
- https://github.com/sveltejs/kit/commit/a8f7c1e09f13524d3b71d814bad9c15c9f33ef49
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected]
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected]
- https://github.com/advisories/GHSA-rqp5-r3wg-vg35
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-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-114060
SvelteKit: URL redirection to untrusted site via enhanced form submission
low4.7Oct 23, 2026CVE-2026-114061
SvelteKit : XSS via untrusted cache-control header in prerendered page
lowOct 23, 2026
