CVE-2026-128116: SvelteKit: Protocol-relative module import during server-side route resolution allows cross-origin script execution
Published 2026-11-16 · Updated 2026-11-16 · Also known as GHSA-rqp5-r3wg-vg35
Summary
SvelteKit contains a protocol-relative module import vulnerability during server-side route resolution that allows cross-origin script execution. Engineering and security teams managing SvelteKit applications with server-side resolution enabled must update their packages.
Who is affected
Apps configured with `router.resolution: 'server'` are affected. An attacker must use social engineering or another exploit to drive a user to perform a client-side navigation using a specially-crafted link, which causes code from another domain to be imported and run on the user's machine, resulting in high confidentiality impact.
Exploitability
The vulnerability is rated Medium with a CVSS base score of 5.3, utilizing an attack vector over the network (AV:N), high attack complexity (AC:H), requiring no privileges (PR:N) but requiring user interaction (UI:R) through a crafted link. The scope is unchanged (S:U) with high confidentiality impact (C:H) and no integrity or availability impact; the EPSS score is 0.003, and it is not listed in the CISA KEV.
Remediation
- Upgrade @sveltejs/kit to version 3.1.1 or 2.70.4.
How to check your project
- Check package.json or lockfiles to determine if @sveltejs/kit versions between 3.0.0 and 3.1.1 or versions below 2.70.4 are present.
- Verify if the application configuration enables `router.resolution: 'server'`.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | @sveltejs/kit |
>= 3.0.0, < 3.1.1 | 3.1.1 | npm install @sveltejs/[email protected] |
| npm | @sveltejs/kit |
>= 0, < 2.70.4 | 2.70.4 | npm install @sveltejs/[email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | Required |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity | None |
| Availability | None |
FAQ
What causes the vulnerability?
A protocol-relative module import during server-side route resolution allows cross-origin script execution.
Are all SvelteKit applications affected?
No, this only affects applications utilizing `router.resolution: 'server'`.
Is there any active exploitation documented in CISA KEV?
No, CISA Known Exploited Vulnerabilities status is no.
Original advisory description
References
- WEB https://github.com/sveltejs/kit/security/advisories/GHSA-rqp5-r3wg-vg35
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-128116
- WEB https://github.com/sveltejs/kit/pull/17620
- WEB https://github.com/sveltejs/kit/commit/0a2e58cbccdd46cac20aa5af4e2edf17e0da11dd
- WEB https://github.com/sveltejs/kit/commit/a8f7c1e09f13524d3b71d814bad9c15c9f33ef49
- PACKAGE https://github.com/sveltejs/kit
- WEB https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected]
- WEB https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected]
Source records: GHSA-rqp5-r3wg-vg35 (OSV.dev) · EPSS by FIRST, 2026-11-26.