CVE-2026-128116
JSON

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 packageVersionsReported by
sveltejs kit< 2.70.4, >= 3.0.0, < 3.1.1CVE List
@sveltejs/kit (npm)from 3.0.0 before 3.1.1, before 2.70.4GitHub Advisory Database

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

Classification

CWE-79

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

SourceRecordLicence
CVE ListCVE-2026-128116 changed 2026-11-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-rqp5-r3wg-vg35 changed 2026-11-16CC-BY-4.0
NVDCVE-2026-128116 changed 2026-11-18Public domain