svelte
5.58.0 · 18 Nov 2026MIT10.4M / weekRepositoryHomepagenpmAtom feed
4.2.20 is the newest release of 4.x.
In short
9 fixed
Security
7 advisories affect 4.2.1; 5.55.7 fixes them
- 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
- ModerateSvelte SSR does not validate dynamic element tag names in `<svelte:element>`GHSA-m56q-vw4c-c2cp · 19 Feb 2026Fixed in 5.51.5
2 more
- ModerateSvelte affected by cross-site scripting via spread attributes in Svelte SSRGHSA-f7gr-6p89-r883 · 19 Feb 2026Fixed in 5.51.5
- ModerateSvelte has a potential mXSS vulnerability due to improper HTML escapingGHSA-8266-84wp-wv5c · 30 Aug 2024Fixed in 4.2.19
Release note
Patch Changes
Update style directive when style attribute is present and is updated via an object prop
Css sourcemap generation with unicode filenames
Do not add module declared variables as dependencies
Handle
svelte:elementwith dynamic this and spread attributesSilence false positive reactive component warning
Head duplication when binding is present
Take custom attribute name into account when reflecting property
Add
indeterminateto the list of HTMLAttributesRecognize option value on spread attribute
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.