Read the docs

Protocol-relative import in SvelteKit enables cross-origin script execution

Priority LOW 24CWE-79Published · Updated

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

EPSS 0.00264 18th percentileScored 2026-11-16
Fix Fixed kit (sveltejs): 2.70.4, 3.1.1@sveltejs/kit (npm): 3.1.1, 2.70.4

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
sveltejskitbefore 2.70.4; 3.0.0 to before 3.1.12.70.4, 3.1.1Patch availableCNA
—@sveltejs/kit (npm)3.0.0 to before 3.1.13.1.1Patch availableGHSA-rqp5-r3wg-vg35
—@sveltejs/kit (npm)before 2.70.42.70.4Patch availableGHSA-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

  1. 2026-11-13 Threatist record created from CVE-2026-128116
  2. 2026-11-16 Alias added: GHSA-rqp5-r3wg-vg35
  3. 2026-11-16 Fix available: npm/@sveltejs/[email protected], npm/@sveltejs/[email protected] · GHSA-rqp5-r3wg-vg35
  4. 2026-11-16 CVSS score added · GHSA-rqp5-r3wg-vg35
  5. 2026-11-16 Weakness changed · GHSA-rqp5-r3wg-vg35
  6. 2026-11-16 8 new references · GHSA-rqp5-r3wg-vg35

References

  • 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
See all 58 →

Sources