@sveltejs/kit
3.3.0 · 17 Nov 2026MIT5.1M / weekRepositoryHomepagenpmAtom feed
2.70.4 is the newest release of 2.x.
In short
3 new1 faster10 fixed2 internal
Security
10 advisories affect 2.16.0; 2.70.4 fixes the others
- High@sveltejs/adapter-node has a BODY_SIZE_LIMIT bypassGHSA-2crg-3p73-43xp · 10 Apr 2026Fixed in 2.57.1
- ModerateSvelteKit: Protocol-relative module import during server-side route resolution allows cross-origin script executionGHSA-rqp5-r3wg-vg35 · 16 Nov 2026Fixed in 2.70.4
- ModerateSvelteKit: adapter-node crashes with an unhandled URIError when `reroute` rewrites malformed pathnamesGHSA-mw6w-2fmv-pvw3 · 13 Nov 2026Fixed in 2.70.4
- ModerateSvelteKit: ReDoS (O(n^2)) in content negotiation — unauthenticated DoS via the Accept headerGHSA-29g2-3rmr-qm68 · 7 Aug 2026Fixed in 2.70.2
- ModerateSvelteKit: Prototype pollution in file input deletion path in remote-function formsGHSA-866w-xmhq-wj7x · 24 Jul 2026Fixed in 2.69.1
5 more
- ModerateSvelteKit: Big remote form function payloads can cause Node process to crashGHSA-wqjv-9729-c5q2 · 24 Jul 2026Fixed in 2.69.1
- Moderate@sveltejs/kit: Unvalidated redirect in handle hook causes Denial-of-ServiceGHSA-3f6h-2hrp-w5wx · 10 Apr 2026Fixed in 2.57.1
- Moderate@sveltejs/kit vulnerable to Cross-site Scripting via tracked search_paramsGHSA-6q87-84jw-cjhp · 14 Apr 2025Fixed in 2.20.6
- LowSvelteKit: URL redirection to untrusted site via enhanced form submissionGHSA-pfhg-q3qv-9q6r · 23 Oct 2026No fix yet
- LowSvelteKit : XSS via untrusted cache-control header in prerendered pageGHSA-27mw-82g8-phjj · 23 Oct 2026No fix yet
Release note
Minor Changes
Add ability to invalidate a custom identifier on
goto()Remove the
postinstallscript to support pnpm 10NOTE: users should add
"prepare": "svelte-kit sync" to theirpackage.jsonin order to avoid the following warning upon first running Vite:▲ [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json] tsconfig.json:2:12: 2 │ "extends": "./.svelte-kit/tsconfig.json", ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Provide
PagePropsandLayoutPropstypes
Patch Changes
Shorten chunk file names
Strip internal data before passing URL to
rerouteSupport absolute URLs and reroutes with
data-sveltekit-preload-code="viewport"Use current
window.fetchfor server load fetch requestsResolve symlinks when handling routes
Prevent infinite reload when using the hash router and previewing
/index.htmlService worker base path in dev mode
Correctly link to assets inlined by the
inlineStyleThresholdoptionFall back to importing dynamic dependencies relative to SvelteKit package
Use arrow function types over bound funcs
Correctly navigate when hash router is enabled and the browser encodes extra hashes
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.