Improper Encoding or Escaping of Output Affecting @sveltejs/adapter-static package, versions <3.0.11>=4.0.0-next.0 <4.0.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.44% (41st 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-SVELTEJSADAPTERSTATIC-23050792
  • published30 Nov 2026
  • disclosed13 Nov 2026
  • creditUnknown

Introduced: 13 Nov 2026

NewCVE-2026-128121  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade @sveltejs/adapter-static to version 3.0.11, 4.0.1 or higher.

Overview

@sveltejs/adapter-static is an Adapter for SvelteKit apps that prerenders your entire site as a collection of static files

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output via the Vercel route configuration generator in packages/adapter-vercel/index.js, where attacker-influenced links crawled during the prerender phase are emitted into the generated Vercel routing configuration without escaping regular-expression metacharacters. The resulting configuration interprets the injected path as regex syntax, causing it to match unintended application paths and expose content or behavior outside the intended path. An attacker who can influence a link that is crawled during prerendering can trigger this condition.

CVSS Base Scores

version 4.0
version 3.1