Skip to main content

SvelteKit Cloudflare adapter EUVDEUVD-2026-125767

| CVE-2026-128122 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-13 GitHub_M GHSA-5wg4-q3ww-283h
5.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Influence a link crawled during prerender
  2. Delivery
    Embed control chars/wildcards in redirect path
  3. Exploit
    Adapter writes unvalidated path to _redirects
  4. Execution
    Cloudflare edge creates unintended routing rule
  5. Impact
    Redirect or expose requests beyond intended route

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 all of: deployment with @sveltejs/adapter-cloudflare at an affected version (>=4.7.0 through 7.2.9, or 8.0.0/8.0.1); prerendering enabled so the build crawls links; and the attacker being able to influence a link that is crawled during prerendering so that a crafted redirect path (containing whitespace, control characters, wildcards, or placeholders) is captured. The limiting factors are significant: the flaw is triggered at build/prerender time rather than at request time, it depends on the application incorporating attacker-influenceable content into the crawl, and it is specific to the Cloudflare adapter - hence AC:H. These conditions are why this does not behave like a straightforward remote-unauthenticated request exploit despite PR:N/UI:N.

Impact

This is a moderate, conditional risk rather than an urgent one. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N, base 5.9) pairs network reach and no-authentication with High attack complexity, and the High complexity is the key qualifier: exploitation depends on the attacker being able to influence links that the site crawls during prerendering, which is a build-time, environment-specific precondition rather than a direct request against a live endpoint. The priority decision label is 'this_month', consistent with a real but non-emergency issue. There is no EPSS score, no CISA KEV listing, and no public exploit identified at time of analysis - the available references are the GHSA advisory, a pull request, fix commits, and release tags, i.e. remediation artifacts, not weaponized exploit code. NVD records the impact as C:H/I:N/A:N, but that is worth scrutiny: the described effect (creating unintended routing rules that redirect requests) is as much an integrity/routing-manipulation issue as a confidentiality one, and the GHSA CWE set (CWE-93, CWE-116) describes the mechanism - improper neutralization/encoding into a generated config file - more precisely than the NVD-assigned CWE-79 (XSS). Net: treat as a planned-remediation item for teams running the Cloudflare adapter with prerendering of attacker-influenceable content, not a drop-everything priority.

Exploit ScenarioDerived

An attacker plants content (for example user-submitted or CMS-sourced links) that the site follows while crawling during prerendering; the crafted redirect path contains whitespace, control characters, wildcards, or placeholders. During the build's adapt phase, @sveltejs/adapter-cloudflare writes that unvalidated path into the Cloudflare _redirects file, producing an unintended routing rule that can redirect or expose requests to routes beyond the intended one. No public exploit code is identified, and the CVSS High attack complexity reflects the build-time precondition of influencing what gets crawled.

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

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

Alert me

AnalysisAIv1 – Nov 13, 2026

Prerendered redirect handling in SvelteKit's @sveltejs/adapter-cloudflare can write unintended routing rules into the Cloudflare _redirects file when an attacker can influence a link crawled at build time, potentially misrouting requests or exposing content beyond the intended prerendered route. The issue affects adapter versions from 4.7.0 through 7.2.9 and the 8.0.0/8.0.1 releases, and is fixed in 7.2.10 and 8.0.2. Exploitation is conditional and build-time only: it requires prerendering to be enabled and attacker-influenced content to be captured during the crawl, so overall risk is moderate; no public exploit has been identified at time of analysis and there is no CISA KEV entry.

RemediationAI

Upgrade @sveltejs/adapter-cloudflare to 7.2.10 on the 7.x line or 8.0.2 on the 8.x line, the vendor-released patch versions; the advisory is at https://github.com/sveltejs/kit/security/advisories/GHSA-5wg4-q3ww-283h and the fix is documented in PR https://github.com/sveltejs/kit/pull/17620. The patched code skips prerendered redirect paths containing wildcard characters and warns during the build, and percent-encodes whitespace, control characters and other characters that Cloudflare would parse as separators in both the path and the redirect location. If upgrading is not immediately possible, inspect the generated _redirects and _routes.json files after each build for unexpected or overly broad rules before deployment, and avoid prerendering redirect routes whose target paths can be influenced by untrusted input; those measures are compensating only, since older adapter versions still emit unvalidated rule text. Disabling prerendering for affected routes can change caching, performance and SEO behavior, so scope it to routes that incorporate attacker-influenceable links.

Affected VersionsENISA

kit 4.7.0, < 7.2.10
kit 8.0.0-next.0, < 8.0.2

Affected Packages

npm @sveltejs/adapter-cloudflare fix: 7.2.10, 8.0.2
euvd kit fix: 7.2.10, 8.0.2

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

The @sveltejs/adapter-cloudflare package generates Cloudflare platform files during the adapt phase of a SvelteKit build, including a _redirects file derived from builder.prerendered.redirects and a _routes.json file. The vulnerable implementation concatenated each prerendered path, redirect location and status into a line-oriented rule without validating the output context, so whitespace, control characters, wildcards or placeholders in a path could be interpreted as additional or broader routing rules. The GitHub advisory classifies the weakness as CWE-79, CWE-93 and CWE-116, reflecting improper neutralization of output in a generated configuration file, with CWE-116 (improper encoding or escaping of output) best describing the root cause; the practical consequence here is routing-rule injection rather than script execution. The fix centralizes generation in utils.js, skips paths containing wildcard characters with a build warning, and percent-encodes characters that Cloudflare would otherwise treat as token separators in the path and redirect location. The flaw is specific to the Cloudflare adapter and is triggered at build/prerender time, not at request time.

Know when Kit 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.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 4.8 MEDIUM

Requires influencing links crawled during prerendering (AC:H) with no authentication (PR:N); build-time injection of routing rules yields limited confidentiality and integrity impact, no availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/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
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

1
Patch available
Nov 13, 2026 - 21:04 EUVD

DescriptionCVE.org

SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. From version 4.7.0 until versions 7.2.10 and 8.0.2, @sveltejs/adapter-cloudflare allowed an attacker-influenced link crawled during prerendering to place whitespace, control characters, wildcards, or placeholders into a prerendered redirect path. The adapter wrote those paths into the Cloudflare _redirects output without output-context validation, allowing a path to create unintended routing rules that could redirect or expose requests beyond the intended prerendered route. This issue is fixed in 7.2.10 and 8.0.2.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
Medium
popular SvelteKit framework, but only Cloudflare-deployed sites using this adapter are affected
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
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 Yes
EPSS 0.4%
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
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: +20
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.

More in Kit

View all
CVE-2026-128118 HIGH POC
7.5 Nov 13

SvelteKit 3.0.0 through 3.1.0 can leak server-side secrets into the browser bundle because its build-time server-only im

CVE-2024-23641 HIGH POC
7.5 Jan 24

SvelteKit is a web development kit. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authe

CVE-2026-128123 MEDIUM POC
5.9 Nov 13

Denial of service in SvelteKit's @sveltejs/adapter-node occurs in 5.5.7 and later versions before the 5.5.8 and 6.0.1 fi

CVE-2026-66062 MEDIUM POC
5.3 Aug 07

Remote denial-of-service in @sveltejs/kit (versions ≤ 2.70.1) is achievable by any unauthenticated attacker who sends a

CVE-2025-67647 CRITICAL
9.1 Jan 15

SvelteKit 2.19.0-2.49.4 has SSRF/DoS affecting applications with prerendered routes. Can be exploited to make the server

CVE-2026-114063 HIGH
8.7 Oct 21

A path traversal vulnerability in SvelteKit's Vite preview server on Windows (versions 2.10.0 before 3.0.0) allows remot

CVE-2026-82259 HIGH
8.7 Aug 28

Denial of service in SvelteKit versions 2.49.0 through 2.53.2 is achievable by unauthenticated remote attackers who subm

CVE-2026-82261 HIGH
8.7 Aug 28

CPU exhaustion in SvelteKit's experimental remote form deserialization endpoint allows unauthenticated remote attackers

CVE-2026-82260 HIGH
8.7 Aug 28

Memory exhaustion in @sveltejs/kit versions 2.49.0 through 2.52.1 allows unauthenticated remote attackers to crash the s

CVE-2026-40073 HIGH
8.2 Apr 10

Request body size limit bypass in SvelteKit adapter-node allows unauthenticated attackers to submit oversized payloads,

CVE-2026-128120 HIGH
7.5 Nov 13

SvelteKit versions 2.42.0 through 3.1.0 can be driven into an event-loop-blocking denial of service by a single unauthen

CVE-2026-22803 HIGH
7.5 Jan 15

SvelteKit versions 2.49.0 through 2.49.4 are vulnerable to denial-of-service attacks through the experimental form remot

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