MEDIUM · CVSS 3.1 5.3 EPSS 0.4% · 30th percentile CWE-79

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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 vectorNetwork
Attack complexityHigh
Privileges requiredNone
User interactionRequired
ScopeUnchanged
ConfidentialityHigh
IntegrityNone
AvailabilityNone

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
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

Source records: GHSA-rqp5-r3wg-vg35 (OSV.dev) · EPSS by FIRST, 2026-11-26.