CVE-2026-128122: Prerendered Redirect Rule Injection in @sveltejs/adapter-cloudflare
Vulnerability ID: CVE-2026-128122
CVSS Score: 5.9
Published: 2026-11-13
CVE-2026-128122 (GHSA-5wg4-q3ww-283h) is a build-time CRLF and wildcard injection vulnerability in @sveltejs/adapter-cloudflare . During the prerendering phase of a SvelteKit build, the adapter writes crawled redirect paths directly into the Cloudflare _redirects and _routes.json configuration files without output encoding or character validation. An attacker capable of controlling link paths on prerendered pages can inject newline characters, spaces, or wildcard patterns to forge arbitrary edge redirection rules, enabling asset hijacking and Stored Cross-Site Scripting (XSS).
TL;DR
Unsanitized prerendered redirect paths in @sveltejs/adapter-cloudflare allow attackers to inject arbitrary routing rules into Cloudflare _redirects and _routes.json files via CRLF sequences and wildcards, leading to JavaScript bundle hijacking and Stored XSS.
⚠️…