npmWorst: High14 advisories

svelte: known vulnerabilities

svelte has 14 reviewed security advisories in the GitHub Advisory Database — 1 high, 13 moderate. The most recent was published 2026-06-09. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the svelte versions running across your servers, containers and images, and ranks what to patch first.

How to fix svelte

Upgrade svelte to a release at or above the fixed version shown for each advisory below. For npm:

npm install svelte@5.55.7 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (14)

Svelte: ReDoS in `<svelte:element>` Tag Validation Moderate CWE-1333 — Affected: from 5.51.5 up to 5.55.7. Fixed in 5.55.7. Published 2026-06-09. GHSA-9rmh-mm8f-r9h6 · CVE-2026-42567
Svelte SSR vulnerable to cross-site scripting via spread attributes Moderate CWE-79 — Affected: before 5.55.7. Fixed in 5.55.7. Published 2026-06-09. GHSA-pr6f-5x2q-rwfp · CVE-2026-42599
Svelte Vulnerable to XSS via DOM Clobbering of Internal Framework State Moderate CWE-79 — Affected: before 5.55.7. Fixed in 5.55.7. Published 2026-06-09. GHSA-rcqx-6q8c-2c42 · CVE-2026-42573
Svelte: SSR XSS via Insecure Promise Serialization in hydratable Moderate CWE-79 — Affected: from 5.46.0 up to 5.55.7. Fixed in 5.55.7. Published 2026-05-14. GHSA-f3cj-j4f6-wq85
Svelte vulnerable to XSS during SSR with contenteditable `bind:innerText` and `bind:textContent` Moderate CWE-79 — Affected: before 5.53.5. Fixed in 5.53.5. Published 2026-02-26. GHSA-phwv-c562-gvmh · CVE-2026-27901
Svelte: XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers Moderate CWE-79 — Affected: from 5.53.0 up to 5.53.5. Fixed in 5.53.5. Published 2026-02-26. GHSA-qgvg-pr8v-6rr3 · CVE-2026-27902
Svelte SSR attribute spreading includes inherited properties from prototype chain Moderate CWE-915 — Affected: before 5.51.5. Fixed in 5.51.5. Published 2026-02-20. GHSA-crpf-4hrx-3jrp · CVE-2026-27125
Svelte affected by cross-site scripting via spread attributes in Svelte SSR Moderate CWE-79 — Affected: before 5.51.5. Fixed in 5.51.5. Published 2026-02-20. GHSA-f7gr-6p89-r883 · CVE-2026-27121
Svelte affected by XSS in SSR `<option>` element Moderate CWE-79 — Affected: from 5.39.3 up to 5.51.5. Fixed in 5.51.5. Published 2026-02-20. GHSA-h7h7-mm68-gmrc · CVE-2026-27119
Svelte SSR does not validate dynamic element tag names in `<svelte:element>` Moderate CWE-79 — Affected: before 5.51.5. Fixed in 5.51.5. Published 2026-02-20. GHSA-m56q-vw4c-c2cp · CVE-2026-27122
svelte is vulnerable to XSS with textarea bind:value High CWE-79 — Affected: from 3.0.0 up to 3.59.2. Fixed in 3.59.2. Published 2026-01-16. GHSA-gw32-9rmw-qwww
svelte vulnerable to Cross-site Scripting Moderate CWE-79 — Affected: from 5.46.0 up to 5.46.4. Fixed in 5.46.4. Published 2026-01-15. GHSA-6738-r8g5-qwp3 · CVE-2025-15265
Svelte has a potential mXSS vulnerability due to improper HTML escaping Moderate 5.4 CWE-79 — Affected: before 4.2.19. Fixed in 4.2.19. Published 2024-08-30. GHSA-8266-84wp-wv5c · CVE-2024-45047
Svelte vulnerable to XSS when using objects during server-side rendering Moderate 6.1 CWE-79 — Affected: before 3.49.0. Fixed in 3.49.0. Published 2022-07-12. GHSA-wv8q-r932-8hc7 · CVE-2022-25875

Find svelte across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.