Dev News Daily ENDE

SvelteKit adapters: prerendered links could inject Cloudflare redirects and Vercel regexes

Four security advisories for SvelteKit were published in the GitHub Advisory Database on 13 November. All four are rated medium, with a score of 5.9. Two concern what the build writes for a hosting platform, and two concern servers built with @sveltejs/adapter-node crashing.

The first build-output flaw affects @sveltejs/adapter-cloudflare (CVE-2026-128122). If an attacker can influence the links that are crawled during prerendering, they can influence the redirect entries that the adapter writes into the _redirects file for Cloudflare during the adapt phase of the build. Versions from 4.7.0 up to 7.2.9 are affected and 7.2.10 fixes them; on the 8.x pre-release line the fix is 8.0.2.

The second (CVE-2026-128121) affects the Vercel route configuration produced by @sveltejs/adapter-vercel and @sveltejs/adapter-static. A link that the attacker could influence during prerendering could later be interpreted as a regular expression in that configuration. The fixed versions are 6.3.5 and 7.0.2 of adapter-vercel and 3.0.11 and 4.0.1 of adapter-static.

The two crashes are in the server path. In @sveltejs/kit (CVE-2026-128117), when a reroute hook turned an invalid percent-encoded path into a valid one, a later comparison could throw an unhandled URIError and crash a Node server; versions 2.70.4 and 3.1.1 fix it. In @sveltejs/adapter-node (CVE-2026-128123), proxying certain requests through fetch could make the adapter try to add a header to an immutable request, which crashes the server and denies service to every other request routed to it. Version 5.5.7 is affected and 5.5.8 fixes it, as does 6.0.1 on the pre-release line.

SvelteKit adapters: prerendered links could inject Cloudflare redirects and Vercel regexes
SvelteKit adapters: prerendered links could inject Cloudflare redirects and Vercel regexes — Dev News Daily

Why it matters

Updating only @sveltejs/kit covers one of the four. The two build-output issues sit in the adapters, so a project deployed to Cloudflare or Vercel needs the new adapter versions, and the advisories tie both to one condition: that someone can influence the links the prerender step crawls.

Primary source
GitHub Advisory Database
https://github.com/advisories/GHSA-5wg4-q3ww-283h
Written by Victoria Shinder.