Skip to main content

SvelteKit EUVDEUVD-2026-125727

| CVE-2026-128116 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-13 GitHub_M GHSA-rqp5-r3wg-vg35
5.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft link with // protocol-relative pathname
  2. Delivery
    Socially engineer victim into clicking
  3. Exploit
    Client-side navigation hits server route resolution
  4. Execution
    Pathname imported as cross-origin module
  5. Impact
    Attacker JavaScript executes in victim browser

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the app to be explicitly configured with router.resolution: 'server' - this is the exact, named prerequisite and is not the default, which sharply limits the affected population. It further requires client-side navigation to a crafted link whose pathname begins with // (a protocol-relative specifier pointing at an attacker origin), and it requires victim user interaction: the user must be socially engineered into following that link (UI:R). No authentication is needed (CVSS PR:N, unauthenticated), and the attack is remote/network-delivered, but the combination of a non-default setting plus required human interaction are the practical limiting factors defenders should weigh.

Impact

This is a moderate, conditional XSS-class issue (CVE-2026-128116, CWE-79) rather than a drop-everything emergency. The vendor CVSS of 5.3 (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N) captures the key tension well: the attack is network-reachable and needs no attacker privileges (PR:N), but it carries real friction - AC:H and UI:R because it only works against apps that opted into the non-default router.resolution: 'server' setting AND requires a victim to be socially engineered into following a crafted link during client-side navigation. There is no CISA KEV listing and no EPSS score supplied, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_month', i.e. prioritized but not emergency/act_now. On the POC question the inputs contain only the GHSA advisory, the fixing PR (#17620) and patch commits - these are remediation artifacts, not a working exploit, so no public exploit code is identified. One signal to flag for verification: the vendor scored impact as C:H/I:N/A:N, but the mechanism (executing attacker-controlled cross-origin JavaScript in the user's browser) is a classic XSS profile that typically implies at least limited integrity impact and arguably a scope change, so the single-dimension C:H/I:N scoring is debatable - see assessed vector below. Net: treat as a scheduled-patch priority, elevated only for apps actually running server-side route resolution.

Exploit ScenarioDerived

An attacker crafts a link whose pathname begins with // (e.g. //evil.example/payload.js) and lures a user of a vulnerable SvelteKit app - one configured with router.resolution: 'server' - into clicking it so that client-side navigation processes it. Server-side route resolution then treats the // prefix as a protocol-relative module specifier and imports and executes JavaScript from the attacker's origin in the victim's browser. No public working exploit is identified; only the advisory and patch commits are available, and exploitation depends on the victim taking the bait (UI:R) and on the non-default configuration being enabled.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 13, 2026

Cross-origin JavaScript execution in SvelteKit is possible when a pathname beginning with // is interpreted as a protocol-relative module specifier during client-side navigation, but only for apps explicitly configured with router.resolution: 'server', which is not the default. An attacker must socially engineer a victim into following a crafted link (UI:R) while the app is running in the browser; no authentication is required (PR:N), and the assessed vector is AC:H with scope change, low confidentiality and integrity impact, and no availability impact. The issue is fixed in @sveltejs/kit 2.70.4 and 3.1.1; no public exploit code has been identified at time of analysis, and the vuln.today decision label is this_month rather than emergency.

RemediationAI

Vendor-released patch: upgrade @sveltejs/kit to 2.70.4 if you are on the 2.x line, or to 3.1.1 if you are on 3.x; both versions contain the fix from PR #17620 described in advisory GHSA-rqp5-r3wg-vg35 (https://github.com/sveltejs/kit/security/advisories/GHSA-rqp5-r3wg-vg35). If an immediate upgrade is not feasible, the advisory scopes the exposure to apps with router.resolution: 'server', so removing that setting and relying on the default client-side route resolution eliminates this code path; the trade-off is that you lose whatever server-side resolution behaviour your app depended on, so validate routing and lazy-loading behaviour after the change. No public exploit code has been identified at time of analysis and the issue is not listed as actively exploited, so scheduling the upgrade within the current monthly patch cycle is consistent with the this_month decision label; keep in mind the remaining prerequisite is still a socially engineered //-prefixed link followed by a user in the browser.

Affected VersionsENISA

kit 3.0.0, < 3.1.1
kit < 2.70.4

Affected Packages

npm @sveltejs/kit fix: 2.70.4, 3.1.1
euvd kit fix: 2.70.4, 3.1.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

SvelteKit's router can resolve routes on the client or on the server; the vulnerable behaviour exists only in the 'server' resolution mode, where route resolution data comes back from the server and modules are then imported in the browser. In that flow, a pathname starting with // is treated as a protocol-relative specifier, so the resolution result can point at a module on a different origin, and the browser's dynamic import then loads and executes attacker-origin JavaScript in the context of the vulnerable app. The flaw is classified CWE-79 (cross-site scripting) because the end effect is attacker-controlled script execution in a victim's browser session, and the assessed CVSS vector (AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N) reflects a network-delivered, unauthenticated attack that nonetheless demands a non-default configuration plus victim interaction and produces limited confidentiality/integrity impact with a scope change. The upstream fix (PR #17620, commits 0a2e58c and a8f7c1e) stops server-side route resolution from loading code from another origin for pathnames starting with //; the same release train also carried unrelated hardening changes (path-traversal prevention when previewing prerendered pages on Windows, escaping of prerendered paths and cache-control headers, and redirect-handling fixes in adapters), which are separate from this CVE and should not be conflated with it. The trigger beyond the crafted //-prefixed link is not described in further detail in the available sources.

Know when Sveltekit gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.3 MEDIUM
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
vuln.today AI 4.7 MEDIUM

Non-default server resolution plus a social-engineered link give AC:H/UI:R and PR:N; cross-origin script execution in the browser is XSS-like, so S:C with limited C:L/I:L rather than the vendor's C:H/I:N.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

1
Patch available
Nov 13, 2026 - 20:49 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
SvelteKit is a popular JS framework, but affected 'server' resolution mode is opt-in
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy