@sveltejs/kit
3.3.0 · 17 Nov 2026MIT5.1M / weekRepositoryHomepagenpmAtom feed
Upgrading @sveltejs/kit From 2.48.4 to 2.70.4
53 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking2.61.0
- Breaking2.59.0
- Breaking2.58.0
- Breaking2.58.0
- Breaking2.56.0
- Breaking2.56.0
- Breaking2.56.0
- Breaking2.56.0
- Breaking2.50.0
- Breaking2.48.8
Security
4 advisories still affect 2.70.4
- SvelteKit : XSS via untrusted cache-control header in prerendered pagelow · GHSA-27mw-82g8-phjj
- SvelteKit: DoS while parsing form data from a remote functions `form`high · GHSA-3r8g-jcqq-3p5j
- SvelteKit: Private `query.batch` functions could collide, producing unexpected parameter / function combinationsmoderate · GHSA-6cf5-gc4q-fm3x
- SvelteKit: URL redirection to untrusted site via enhanced form submissionlow · GHSA-pfhg-q3qv-9q6r
Upgrading to 3.1.1 clears them.
Fixes 9 advisories affecting 2.48.4
- SvelteKit: ReDoS (O(n^2)) in content negotiation — unauthenticated DoS via the Accept headermoderate · GHSA-29g2-3rmr-qm68
- @sveltejs/adapter-node has a BODY_SIZE_LIMIT bypasshigh · GHSA-2crg-3p73-43xp
- @sveltejs/kit: Unvalidated redirect in handle hook causes Denial-of-Servicemoderate · GHSA-3f6h-2hrp-w5wx
- SvelteKit: Prototype pollution in file input deletion path in remote-function formsmoderate · GHSA-866w-xmhq-wj7x
- @sveltejs/kit: `query.batch` cross-talkmoderate · GHSA-hgv7-v322-mmgr
- SvelteKit is vulnerable to denial of service and possible SSRF when using prerenderinghigh · GHSA-j62c-4x62-9r35
- SvelteKit: adapter-node crashes with an unhandled URIError when `reroute` rewrites malformed pathnamesmoderate · GHSA-mw6w-2fmv-pvw3
- SvelteKit: Protocol-relative module import during server-side route resolution allows cross-origin script executionmoderate · GHSA-rqp5-r3wg-vg35
- SvelteKit: Big remote form function payloads can cause Node process to crashmoderate · GHSA-wqjv-9729-c5q2
- 2.70.4
Prevent path traversal when previewing prerendered pages and data on Windows
- 2.70.0
Enable CSRF protection in builds with a non-production
NODE_ENVvalue - 2.69.1
Prevent prototype pollution when deleting file inputs
Release by release
- Security
Prevent path traversal when previewing prerendered pages and data on Windows
- Fixed
Return a 400 response instead of throwing when
rerouterewrites a malformed pathname - Fixed
Escape cache-control headers in prerendered HTML
- Fixed
Prevent server-side route resolution from loading code from another origin for pathnames starting with
// - Fixed
Prevent server-side self-fetch fallbacks from following redirects
- Security
- Fixed
Avoid eagerly reading
$app/statedependencies during module initialization
- Fixed
- Fixed
Prevent quadratic backtracking in
Acceptheader content negotiation
- Fixed
2.70.1nothing new or fixed in the note
- Security
Enable CSRF protection in builds with a non-production
NODE_ENVvalue - New
Move
defineEnvVarsto@sveltejs/kit/env
- Security
- Fixed
Detect destructured
loadandactionsexports during type generation - Fixed
Ensure CSS URL references are absolute when
paths.relativeisfalse - Fixed
Align MAX_COOKIE_SIZE with RFC 6265bis
- Fixed
- Fixed
Set
definevalues onglobalThiswhen running Vitest
- Fixed
- Security
Prevent prototype pollution when deleting file inputs
- Fixed
Prevent unhandled promise rejection
- Security
9 internal lines (docs, tests, tooling) left out.
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.