CVE-2026-128122Sveltejs Kit cross-site scripting (XSS)
CVSS score
5.9
Medium
CVSS 3.1 from github.com
Exploit probability (EPSS)
0.40%
0.40% chance of exploitation in the next 30 days, higher than 34.8% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running sveltejs Kit and compare its version with the affected versions.
Update to a fixed version
- Update Kit to 7.2.10, 8.0.2 or later, on the branch you run.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected products
| Affected products | Versions |
|---|---|
| sveltejs Kit | >= 4.7.0, < 7.2.10 · >= 8.0.0-next.0, < 8.0.2 |
Weakness
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-128122 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.4% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-128122?
CVE-2026-128122 has a CVSS 3.1 base score of 5.9 (medium).
Which versions are affected?
Sveltejs Kit (>= 4.7.0, < 7.2.10; >= 8.0.0-next.0, < 8.0.2)
Is there a patch for CVE-2026-128122?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/sveltejs/kit/commit/0a2e58cbccdd46cac20aa5af4e2edf17e0da11dd
- github.com/sveltejs/kit/commit/679e0d84ea9951bb4f1e458a599066b5a451b08a
- github.com/sveltejs/kit/pull/17620
- github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-cloudflare@7.2.10
- github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-cloudflare@8.0.2
- github.com/sveltejs/kit/security/advisories/GHSA-5wg4-q3ww-283h
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.