Summary
SvelteKit: Prerendered redirect paths can inject arbitrary rules into the `_redirects` file generated by `@sveltejs/adapter-cloudflare`
Advisory details
If an attacker can influence the links crawled during prerendering, they can influence the redirects entries that are added to the Cloudflare platform redirects generated during the adapt phase of the build.
References
- https://github.com/advisories/GHSA-5wg4-q3ww-283h
- https://github.com/sveltejs/kit/security/advisories/GHSA-5wg4-q3ww-283h
- https://github.com/sveltejs/kit/pull/17620
- https://github.com/sveltejs/kit/commit/0a2e58cbccdd46cac20aa5af4e2edf17e0da11dd
- https://github.com/sveltejs/kit/commit/679e0d84ea9951bb4f1e458a599066b5a451b08a
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-cloudflare@7.2.10
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-cloudflare@8.0.2
Related vulnerabilities
All Supply chain →- CRITICALCVE-2026-64670
@waline/client vulnerable to stored XSS through unsanitized comment edit previews
- HIGHCVE-2026-122244
Budibase: Cross-privilege Stored XSS in the Budibase Builder via broken HTML-escaping in `jsonFormatter.format()` rendered through `{@html}` in the CSP-less Builder origin
- MEDIUMCVE-2026-126203
Loofah: Mutation XSS in the HTML5 scrubbers through unescaped attribute values
- MEDIUMCVE-2026-116582
Seroval: Script injection through RegExp sources in serialized output
- HIGHCVE-2026-118257
Vue I18n: escapeParameter does not prevent XSS through srcdoc in translation messages
- MEDIUMCVE-2026-111059
Mercury: Stored / DOM Cross-Site Scripting (XSS): mr.Markdown renders untrusted content as raw, unsanitized HTML