@sveltejs/kit
3.3.0 · 17 Nov 2026MIT5.1M / weekRepositoryHomepagenpmAtom feed
2.70.4 is the newest release of 2.x.
In short
2 new7 fixed
Security
14 advisories affect 2.51.0; 3.1.1 fixes the others
- HighSvelteKit: DoS while parsing form data from a remote functions `form`GHSA-3r8g-jcqq-3p5j · 16 Nov 2026Fixed in 3.1.1
- 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
9 more
- ModerateSvelteKit: Prototype pollution in file input deletion path in remote-function formsGHSA-866w-xmhq-wj7x · 24 Jul 2026Fixed in 2.69.1
- 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: `query.batch` cross-talkGHSA-hgv7-v322-mmgr · 21 May 2026Fixed in 2.60.1
- Moderate@sveltejs/kit: Unvalidated redirect in handle hook causes Denial-of-ServiceGHSA-3f6h-2hrp-w5wx · 10 Apr 2026Fixed in 2.57.1
- ModerateCPU exhaustion in SvelteKit remote form deserialization (experimental only)GHSA-88qp-p4qg-rqm6 · 19 Feb 2026Fixed in 2.52.2
- ModerateMemory exhaustion in SvelteKit remote form deserialization (experimental only)GHSA-vrhm-gvg7-fpcf · 19 Feb 2026Fixed in 2.52.2
- 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
- LowSvelteKit has deserialization expansion in unvalidated `form` remote function leading to Denial of Service (experimental only)GHSA-fpg4-jhqr-589c · 28 Feb 2026Fixed in 2.53.3
Release note
Minor Changes
Add
scrollproperty toNavigationTargetin navigation callbacksNavigation callbacks (
beforeNavigate,onNavigate, andafterNavigate) now include scroll position information via thescrollproperty onfromandtotargets:from.scroll: The scroll position at the moment navigation was triggeredto.scroll: InbeforeNavigateandonNavigate, this is populated forpopstatenavigations (back/forward) with the scroll position that will be restored, andnullfor other navigation types. InafterNavigate, this is always the final scroll position after navigation completed.
This enables use cases like animating transitions based on the target scroll position when using browser back/forward navigation.
hydratable's injected script now works with CSP
Patch Changes
Put preloads before styles
Suppress false-positive inner content warning when children prop is forwarded to a child component
fetchnot working when URL is same host but different thanpaths.baseNavigate to hash link when base element is present
Avoid triggering
handleErrorwhen redirecting in a remote functionInclude
testdirectory in generatedtsconfig.jsonalongside existingtestsentryGenerate
tsconfig.jsonusing the value ofkit.files.src
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.