MEDIUM · CVSS 3.1 5.9 EPSS 0.5% · 34th percentile CWE-116CWE-79CWE-93

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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 vectorNetwork
Attack complexityHigh
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityNone
AvailabilityNone

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
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

Source records: GHSA-5wg4-q3ww-283h (OSV.dev) · EPSS by FIRST, 2026-11-26.