svelte@1.25.0 vulnerabilities

Cybernetically enhanced web apps

Direct Vulnerabilities

Known vulnerabilities in the svelte package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Cross-site Scripting (XSS)

svelte is a package for building web applications.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) due to a mismatch between attribute value and other string sanitization rules. An attacker can execute scripts by injecting malicious content into an attribute in a <noscript> tag.

How to fix Cross-site Scripting (XSS)?

Upgrade svelte to version 4.2.19 or higher.

<4.2.19
  • M
Cross-site Scripting (XSS)

svelte is a package for building web applications.

Affected versions of this package 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 toString() function.

How to fix Cross-site Scripting (XSS)?

Upgrade svelte to version 3.49.0 or higher.

<3.49.0
  • M
Cross-site Scripting (XSS)

svelte is a package for building web applications.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) when objects are rendered directly to attribute values as unescaped strings. This means an object with a custom toString() can result in raw html injection.

How to fix Cross-site Scripting (XSS)?

Upgrade svelte to version 3.46.5 or higher.

<3.46.5
  • M
Cross-site Scripting (XSS)

svelte is a package for building web applications.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) when spread attributes in the ssr files are unsanitized and can therefore be attack vectors for untrusted user input.

How to fix Cross-site Scripting (XSS)?

Upgrade svelte to version 2.9.8 or higher.

<2.9.8