Skip to main content
← All vulnerabilities
CVE-2024-45047GHSA-8266-84WP-WV5C

Potential mXSS vulnerability due to improper HTML escaping in svelte

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.2.19
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • sveltejs svelte

    fixed in 4.2.19

  • sveltenpm

    fixed in 4.2.19

References 1

GitHub · sveltejs/svelte