GitHub Advisory Database
GHSA-5wg4-q3ww-283h
SvelteKit: Prerendered redirect paths can inject arbitrary rules into the `_redirects` file generated by `@sveltejs/adapter-cloudflare`
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | @sveltejs/adapter-cloudflare | From 4.7.0 before 7.2.10 (fixed in 7.2.10) |
| npm | @sveltejs/adapter-cloudflare | From 8.0.0-next.0 before 8.0.2 (fixed in 8.0.2) |
References
- 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
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected]
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected]