CVE-2026-128122: SvelteKit: Prerendered redirect paths can inject arbitrary rules into the `_redirects` file generated by `@sveltejs/adapter-cloudflare`
Published 2026-11-13 · Updated 2026-11-13 · Also known as GHSA-5wg4-q3ww-283h
Summary
A vulnerability in @sveltejs/adapter-cloudflare allows attackers to inject malicious rules into the generated _redirects file during the prerendering process. Developers using affected versions of the adapter should update their dependencies to the specified fixed versions to prevent configuration injection.
Who is affected
The vulnerability affects SvelteKit applications using @sveltejs/adapter-cloudflare that rely on prerendering. An attacker must be able to influence the links crawled during the build phase to inject arbitrary redirect rules into the final Cloudflare platform configuration.
Exploitability
The vulnerability carries a CVSS base score of 5.9, reflecting a medium severity with high attack complexity and no user interaction required. The low EPSS score of 0.004 indicates a low probability of exploitation, and the vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade @sveltejs/adapter-cloudflare to version 7.2.10 or later for the 7.x branch.
- Upgrade @sveltejs/adapter-cloudflare to version 8.0.2 or later for the 8.x branch.
How to check your project
- Inspect the package.json or package-lock.json files to check if @sveltejs/adapter-cloudflare is within the affected ranges (4.7.0 to <7.2.10 or 8.0.0-next.0 to <8.0.2).
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | @sveltejs/adapter-cloudflare |
>= 4.7.0, < 7.2.10 | 7.2.10 | npm install @sveltejs/[email protected] |
| npm | @sveltejs/adapter-cloudflare |
>= 8.0.0-next.0, < 8.0.2 | 8.0.2 | npm install @sveltejs/[email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity | None |
| Availability | None |
FAQ
Is this vulnerability actively exploited in the wild?
No, CISA has not listed this as a Known Exploited Vulnerability.
What specifically is being injected into the Cloudflare configuration?
The flaw allows the injection of arbitrary rules into the _redirects file generated during the adapt phase of the build.
What is the primary prerequisite for this attack?
An attacker must be able to influence the links that are crawled during the application's prerendering phase.
Original advisory description
References
- WEB https://github.com/sveltejs/kit/security/advisories/GHSA-5wg4-q3ww-283h
- WEB https://github.com/sveltejs/kit/pull/17620
- WEB https://github.com/sveltejs/kit/commit/0a2e58cbccdd46cac20aa5af4e2edf17e0da11dd
- WEB https://github.com/sveltejs/kit/commit/679e0d84ea9951bb4f1e458a599066b5a451b08a
- PACKAGE https://github.com/sveltejs/kit
- WEB https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected]
- WEB https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected]
Source records: GHSA-5wg4-q3ww-283h (OSV.dev) · EPSS by FIRST, 2026-11-26.