CVE-2026-128116: SvelteKit: Protocol-relative module import during server-side route resolution allows cross-origin script execution

Published Nov 13, 2026
·
Updated

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 Software

1 affected component
npm/@sveltejs/kit<2.70.4, <3.1.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.70.4
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.1.1

Event History

Nov 13, 2026
CVE Published
via MITRE·07:27 PM
Data Sourced
via MITRE·07:27 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are affected?

Applications using SvelteKit with router.resolution set to 'server' are affected if they use a version earlier than 2.70.4 or 3.1.1. The issue occurs during client-side navigation when the navigated pathname begins with //.

2

What does an attacker need to exploit this?

An attacker needs to socially engineer a user into following a link that causes client-side navigation to a pathname beginning with //. No attacker privileges are required, but exploitation requires user interaction and a high-complexity attack condition.

3

What is the impact of successful exploitation?

Successful exploitation can cause the browser to import and execute JavaScript from another origin during server-side route resolution. The stated impact is exposure of confidential information; integrity and availability impacts are not indicated.

4

How can the issue be remediated?

Upgrade SvelteKit to version 2.70.4 or 3.1.1. These versions contain the fix for protocol-relative module specifiers being handled during client-side navigation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203