Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. svelte
  4. ›
  5. CVE-2024-45047

CVE-2024-45047: Svelte has a potential mXSS vulnerability due to improper HTML escaping

August 30, 2024

A potential XSS vulnerability exists in Svelte for versions prior to 4.2.19.

References

  • github.com/advisories/GHSA-8266-84wp-wv5c
  • github.com/sveltejs/svelte
  • github.com/sveltejs/svelte/commit/83e96e044deb5ecbae2af361ae9e31d3e1ac43a3
  • github.com/sveltejs/svelte/security/advisories/GHSA-8266-84wp-wv5c
  • nvd.nist.gov/vuln/detail/CVE-2024-45047

Code Behaviors & Features

Detect and mitigate CVE-2024-45047 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.2.19

Fixed versions

  • 4.2.19

Solution

Upgrade to version 4.2.19 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/svelte/CVE-2024-45047.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:08 +0000.