Svelte is a performance oriented web framework. Prior to version 5.55.7, when using spread syntax to render attributes from untrusted data, event handler properties are included in the rendered HTML output. If an application spreads user-controlled or external data as element att...
Product
npm svelte vulnerabilities
14 published CVES affecting npm svelte, from public sources (CVE.org, NVD, CISA KEV, FIRST EPSS, OSV).
- Total
- 14
- Critical
- 0
- High
- 1
- Medium
- 13
- Low
- 0
- Unscored
- 0
- CISA KEV
- 0
Latest npm svelte CVEs
Newest publication first
-
MediumCVSS 5.1 EPSS 0.21%
-
MediumCVSS 5.9 EPSS 0.45%
Svelte is a performance oriented web framework. From version 5.51.5 to before version 5.55.7, an internal regex in the Svelte runtime can take exponential time to test in <svelte:element this={tag}></svelte:element>. This issue has been patched in version 5.55.7.
-
MediumCVSS 5.3 EPSS 0.34%
Svelte is a performance oriented web framework. Prior to version 5.55.7, Svelte was vulnerable to DOM clobbering of its internal framework state on elements, potentially leading to XSS attacks. This issue has been patched in version 5.55.7.
-
MediumCVSS 5.3
Contents of hydratable promises were not properly stringified, potentially leading to an XSS exploit. You are vulnerable if all of the following is true: you are using hydratable (an experimental feature at the time of this report) you are passing attacker-controlled input such t...
-
MediumCVSS 5.3 EPSS 0.27%
Svelte performance oriented web framework. Prior to version 5.53.5, errors from transformError were not correctly escaped prior to being embedded in the HTML output, causing potential HTML injection and XSS if attacker-controlled content is returned from transformError. Version 5...
-
MediumCVSS 5.3 EPSS 0.26%
Svelte performance oriented web framework. Prior to version 5.53.5, the contents of bind:innerText and bind:textContent on contenteditable elements were not properly escaped. This could enable HTML injection and Cross-Site Scripting (XSS) if rendering untrusted data as the bindin...
-
CVE-2026-27125 Svelte SSR attribute spreading includes inherited properties from prototype chain
PublishedMediumCVSS 5.3 EPSS 0.43%svelte performance oriented web framework. Prior to 5.51.5, in server-side rendering, attribute spreading on elements (e.g. <div {...attrs}>) enumerates inherited properties from the object's prototype chain rather than only own properties. In environments where Object.prototype...
-
CVE-2026-27122 Svelte SSR does not validate dynamic element tag names in `<svelte:element>`
PublishedMediumCVSS 5.1 EPSS 0.22%svelte performance oriented web framework. Prior to 5.51.5, when using <svelte:element this={tag}> in server-side rendering, the provided tag name is not validated or sanitized before being emitted into the HTML output. If the tag string contains unexpected characters, it can res...
-
CVE-2026-27121 Svelte affected by cross-site scripting via spread attributes in Svelte SSR
PublishedMediumCVSS 5.1 EPSS 0.22%svelte performance oriented web framework. Versions of svelte prior to 5.51.5 are vulnerable to cross-site scripting (XSS) during server-side rendering. When using spread syntax to render attributes from untrusted data, event handler properties are included in the rendered HTML o...
-
MediumCVSS 5.1 EPSS 0.21%
svelte performance oriented web framework. From 5.39.3, <=5.51.4, in certain circumstances, the server-side rendering output of an <option> element does not properly escape its content, potentially allowing HTML injection in the SSR output. Client-side rendering is not affected....
-
HighCVSS 8.4
Summary A server-side rendered <textarea> with two-way bound value does not have its value correctly escaped in the rendered HTML. Details In SSR, <textarea bind:value={...}> does not have its value escaped when it is rendered into the HTML as <textarea>...</textarea>. PoC Put th...
-
MediumCVSS 5.3 EPSS 0.35%
An SSR XSS exists in async hydration when attacker‑controlled keys are passed to hydratable. The key is embedded inside a <script> block without HTML‑safe escaping, allowing </script> to terminate the script and inject arbitrary JavaScript. This enables remote script execution in...
-
MediumCVSS 6.1 EPSS 0.37%
svelte performance oriented web framework. A potential mXSS vulnerability exists in Svelte for versions up to but not including 4.2.19. Svelte improperly escapes HTML on server-side rendering. The assumption is that attributes will always stay as such, but in some situation the f...
-
MediumCVSS 6.1 EPSS 1.4%
The package svelte before 3.49.0 are vulnerable to Cross-site Scripting (XSS) due to improper input sanitization and to improper escape of attributes when using objects during SSR (Server-Side Rendering). Exploiting this vulnerability is possible via objects with a custom toStrin...
Sources: CVE.org, NVD, CISA KEV, FIRST EPSS, OSV and public exploit-reference metadata. Product matching comes from the published CVE records. A proof-of-concept means public code exists; it is not evidence of exploitation.