5.3medium
SvelteKit: Protocol-relative module import during server-side route resolution allows cross-origin script execution
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.37% (higher than 32% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-rqp5-r3wg-vg35
Description
SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. Prior to versions 2.70.4 and 3.1.1, apps configured with router.resolution: 'server' could treat a pathname beginning with // as a protocol-relative module specifier during client-side navigation. A socially engineered link could therefore make server-side route resolution import and execute JavaScript from another origin in the user's browser. This issue is fixed in 2.70.4 and 3.1.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| sveltejs kit | < 2.70.4, >= 3.0.0, < 3.1.1 | CVE List |
| @sveltejs/kit (npm) | from 3.0.0 before 3.1.1, before 2.70.4 | GitHub Advisory Database |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. Prior to versions 2.70.4 and 3.1.1, apps configured with router.resolution: 'server' could treat a pathname beginning with // as a protocol-relative module specifier during client-side navigation. A socially engineered link could therefore make server-side route resolution import and execute JavaScript from another origin in the user's browser. This issue is fixed in 2.70.4 and 3.1.1.
GitHub Advisory Database
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-128116 changed 2026-11-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rqp5-r3wg-vg35 changed 2026-11-16 | CC-BY-4.0 |
| NVD | CVE-2026-128116 changed 2026-11-18 | Public domain |