CVE-2024-45047

Medium

Description

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 final DOM tree rendered on browsers is different from what Svelte expects on server-side rendering. This may be leveraged to perform XSS attacks, and a type of the XSS is known as mXSS (mutation XSS). More specifically, this can occur when injecting malicious content into an attribute within a `noscript` tag. This issue has been addressed in release version 4.2.19. Users are advised to upgrade. There are no known workarounds for this vulnerability.

SeverityMedium
CVSS5.4
Exploit probability—
ProductSvelte
PublishedAug 30, 2024
First seenAug 30, 2024

How to fix

Update
  • svelte svelte4.2.19 or later
  • svelte4.2.19 or later

Affected products

ProductAffected versionsFixed in
svelte sveltev < 4.2.194.2.19
sveltenpmv < 4.2.194.2.19

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.