@sveltejs/kit
3.3.0 · 17 Nov 2026MIT5.1M / weekRepositoryHomepagenpmAtom feed
Upgrading @sveltejs/kit From 2.48.7 to 3.1.1
54 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
Security
Fixes 12 advisories affecting 2.48.7
- SvelteKit : XSS via untrusted cache-control header in prerendered pagelow · GHSA-27mw-82g8-phjj
- 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: DoS while parsing form data from a remote functions `form`high · GHSA-3r8g-jcqq-3p5j
- 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: URL redirection to untrusted site via enhanced form submissionlow · GHSA-pfhg-q3qv-9q6r
- 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
- 3.0.0
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
- Fixed
Return a 400 response instead of throwing when
rerouterewrites a malformed pathname - Fixed
Restore function snapshots on reload when SSR is disabled
- Fixed
Prevent separate non-exported
query.batchfunctions from sharing a batch - Fixed
Reuse the original
fetchacross dev server reloads
- Fixed
- New
Support
report-sha256/report-sha384/report-sha512CSP hash-reporting keywords - New
Emit a
sveltekit.endpointspan for+serverhandlers when server tracing is enabled - Fixed
Don't treat every module as server-only when the project is inside a
serverdirectory - Fixed
Continue deployment recovery when service worker updates fail
- New
- Fixed
Ensure relative imports in generated types work with
nodenextmodule resolution
- Fixed
- Security
Prevent path traversal when previewing prerendered pages and data on Windows
- Breaking
Move remote function types to
$app/server - Breaking
Remove
experimental.handleRenderingErrorsflag - Breaking
Make
getRequestandsetResponsesynchronous
- Security
2.70.4nothing new or fixed in the note
- 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
51 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.