Protocol-relative import in SvelteKit enables cross-origin script execution
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
SvelteKit versions before 2.70.4 and from 3.0.0 before 3.1.1 are affected. Apps configured with router.resolution set to 'server' can treat a pathname beginning with // as a protocol-relative module specifier during client-side navigation. A socially engineered link can make server-side route resolution import and execute JavaScript from another origin in the user's browser, which is classified as CWE-79. An attacker needs to get a user to follow a crafted link, and the flaw is rated medium with a CVSS 3.1 base score of 5.3.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sveltejs | kit | before 2.70.4; 3.0.0 to before 3.1.1 | 2.70.4, 3.1.1 | Patch available | CNA |
| — | @sveltejs/kit (npm) | 3.0.0 to before 3.1.1 | 3.1.1 | Patch available | GHSA-rqp5-r3wg-vg35 |
| — | @sveltejs/kit (npm) | before 2.70.4 | 2.70.4 | Patch available | GHSA-rqp5-r3wg-vg35 |
- kit Vendorsveltejs Affected before 2.70.4; 3.0.0 to before 3.1.1 Fixed in 2.70.4, 3.1.1 Patch available CNA
- @sveltejs/kit (npm) Vendor— Affected 3.0.0 to before 3.1.1 Fixed in 3.1.1 Patch available GHSA-rqp5-r3wg-vg35
- @sveltejs/kit (npm) Vendor— Affected before 2.70.4 Fixed in 2.70.4 Patch available GHSA-rqp5-r3wg-vg35
Remediation
Upgrade @sveltejs/kit to version 2.70.4 for the 2.x line and to version 3.1.1 for the 3.x line. The sources list no fixed version for the 3.0.0 branch beyond 3.1.1.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
- Fix · CNA kit (sveltejs) Fixed in 2.70.4, 3.1.1
- Fix · GHSA-rqp5-r3wg-vg35 @sveltejs/kit (npm) Fixed in 3.1.1 Advisory →
- Fix · GHSA-rqp5-r3wg-vg35 @sveltejs/kit (npm) Fixed in 2.70.4 Advisory →
Timeline
- 2026-11-13 Threatist record created from CVE-2026-128116
- 2026-11-16 Alias added: GHSA-rqp5-r3wg-vg35
- 2026-11-16 Fix available: npm/@sveltejs/[email protected], npm/@sveltejs/[email protected] · GHSA-rqp5-r3wg-vg35
- 2026-11-16 CVSS score added · GHSA-rqp5-r3wg-vg35
- 2026-11-16 Weakness changed · GHSA-rqp5-r3wg-vg35
- 2026-11-16 8 new references · GHSA-rqp5-r3wg-vg35
References
Other 7
- https://github.com/sveltejs/kit/security/advisories/GHSA-rqp5-r3wg-vg35
- 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/sveltejs/kit
More sveltejs vulnerabilities
- TI-2023-13469 SvelteKit framework has Insufficient CSRF protection for CORS requests CVSS 3.1HIGH 8.8
- TI-2023-13464 SvelteKit has Insufficient Cross-Site Request Forgery Protection CVSS 3.1HIGH 8.8
- TI-2024-15660 Sending a GET or HEAD request with a body crashes SvelteKit CVSS 3.1HIGH 7.5
- TI-2024-30159 Potential mXSS vulnerability due to improper HTML escaping in svelte CVSS 3.1MEDIUM 6.1
- TI-2025-23466 SvelteKit allows XSS via tracked search_params CVSS 3.1MEDIUM 5.4
- TI-2025-13940 Svelte 5.46.0 - Hydratable Key Script-Breakout XSS (SSR) CVSS 4.0MEDIUM 5.3
Sources
- CVE-2026-128116 · CVE Program
- CVE-2026-128116 · NVD
- FIRST EPSS
- GHSA-rqp5-r3wg-vg35 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences