svelte
5.58.0 · 18 Nov 2026MIT10.4M / weekRepositoryHomepagenpmAtom feed
5.59.1 is the newest release of 5.x.
Summary· from the note as AI read it
To checkNothing breaks, but check what is deprecated or unsure.
Before you upgrade
- Ensure each block keys are unique; duplicates now throw in productionTo check
New
- feat: allow use of createContext when instantiating components programmatically
In short
1 breaking1 new7 fixed1 internal
- BreakingTo check
fix: emit
each_key_duplicateerror in production
Security
8 advisories affect 5.50.0; 5.55.7 fixes them
- ModerateSvelte: SSR XSS via Insecure Promise Serialization in hydratableGHSA-f3cj-j4f6-wq85 · 14 May 2026Fixed in 5.55.7
- ModerateSvelte Vulnerable to XSS via DOM Clobbering of Internal Framework StateGHSA-rcqx-6q8c-2c42 · 14 May 2026Fixed in 5.55.7
- ModerateSvelte SSR vulnerable to cross-site scripting via spread attributesGHSA-pr6f-5x2q-rwfp · 14 May 2026Fixed in 5.55.7
- ModerateSvelte vulnerable to XSS during SSR with contenteditable `bind:innerText` and `bind:textContent`GHSA-phwv-c562-gvmh · 26 Feb 2026Fixed in 5.53.5
- ModerateSvelte SSR attribute spreading includes inherited properties from prototype chainGHSA-crpf-4hrx-3jrp · 19 Feb 2026Fixed in 5.51.5
3 more
- ModerateSvelte SSR does not validate dynamic element tag names in `<svelte:element>`GHSA-m56q-vw4c-c2cp · 19 Feb 2026Fixed in 5.51.5
- ModerateSvelte affected by cross-site scripting via spread attributes in Svelte SSRGHSA-f7gr-6p89-r883 · 19 Feb 2026Fixed in 5.51.5
- ModerateSvelte affected by XSS in SSR `<option>` elementGHSA-h7h7-mm68-gmrc · 19 Feb 2026Fixed in 5.51.5
Release note
Minor Changes
Allow use of createContext when instantiating components programmatically
Patch Changes
Ensure infinite effect loops are cleared after flushing
Allow
{#key NaN}Detect store in each block expression regardless of AST shape
Treat
<menu>like<ul>/<ol>for a11y role checksAdd vite-ignore comment inside dynamic crypto import
Properly hydrate already-resolved async blocks
Emit
each_key_duplicateerror in productionExit resolved async blocks on correct node when hydrating
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.