# CVE-2024-45047: Potential mXSS vulnerability due to improper HTML escaping in svelte

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-08-30T16:49:10.000Z
- Modified: 2026-06-17T07:53:29.423Z
- Also known as: GHSA-8266-84wp-wv5c
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- sveltejs svelte: < 4.2.19
- svelte svelte: before 4.2.19
- svelte (npm): before 4.2.19

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/sveltejs/svelte/security/advisories/GHSA-8266-84wp-wv5c> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45047> (advisory)
- <https://github.com/sveltejs/svelte/commit/83e96e044deb5ecbae2af361ae9e31d3e1ac43a3> (web)
- <https://github.com/sveltejs/svelte> (package)

## Sources

- CVE List: [CVE-2024-45047](https://www.cve.org/CVERecord?id=CVE-2024-45047), CVE Terms of Use, modified 2024-08-30
- GitHub Advisory Database: [GHSA-8266-84wp-wv5c](https://github.com/advisories/GHSA-8266-84wp-wv5c), CC-BY-4.0, modified 2024-08-30
- NVD: [CVE-2024-45047](https://nvd.nist.gov/vuln/detail/CVE-2024-45047), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-45047 · Whole record: https://cve.day/CVE-2024-45047.json · Rebuilt by cve.day 2026-11-25T22:58:44.903Z
