Improper Encoding or Escaping of Output Affecting @sveltejs/adapter-cloudflare package, versions >=4.7.0 <7.2.10>=8.0.0-next.0 <8.0.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.43% (40th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-SVELTEJSADAPTERCLOUDFLARE-23050794
  • published30 Nov 2026
  • disclosed13 Nov 2026
  • creditUnknown

Introduced: 13 Nov 2026

NewCVE-2026-128122  (opens in a new tab)
CWE-116  (opens in a new tab)
CWE-79  (opens in a new tab)
CWE-93  (opens in a new tab)

How to fix?

Upgrade @sveltejs/adapter-cloudflare to version 7.2.10, 8.0.2 or higher.

Overview

@sveltejs/adapter-cloudflare is an Adapts SvelteKit applications for Cloudflare Workers

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output via the generate_redirects function in packages/adapter-cloudflare/utils.js, where prerendered redirect paths are written into the _redirects file without sanitization. An attacker who can influence the links crawled during prerendering can inject arbitrary rules into the Cloudflare platform _redirects file generated during the adapt phase of the build, causing users to be redirected to attacker-controlled destinations. The fix encodes special characters in both the path and location components and skips paths containing wildcard characters that cannot be safely escaped.

CVSS Base Scores

version 4.0
version 3.1