# CVE-2026-27121: Svelte affected by cross-site scripting via spread attributes in Svelte SSR

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:H/SI:H/SA: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.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-02-19T15:18:33.000Z
- Modified: 2026-09-10T03:50:34.768Z
- Also known as: GHSA-f7gr-6p89-r883
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

svelte performance oriented web framework. Versions of svelte prior to 5.51.5 are vulnerable to cross-site scripting (XSS) during server-side rendering. When using spread syntax to render attributes from untrusted data, event handler properties are included in the rendered HTML output. If an application spreads user-controlled or external data as element attributes, an attacker can inject malicious event handlers that execute in victims' browsers. This vulnerability is fixed in 5.51.5.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/sveltejs/svelte/security/advisories/GHSA-f7gr-6p89-r883> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27121> (advisory)
- <https://github.com/sveltejs/svelte> (package)

## Sources

- CVE List: [CVE-2026-27121](https://www.cve.org/CVERecord?id=CVE-2026-27121), CVE Terms of Use, modified 2026-02-23
- GitHub Advisory Database: [GHSA-f7gr-6p89-r883](https://github.com/advisories/GHSA-f7gr-6p89-r883), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-27121](https://nvd.nist.gov/vuln/detail/CVE-2026-27121), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27121 · Whole record: https://cve.day/CVE-2026-27121.json · Rebuilt by cve.day 2026-11-25T22:59:14.428Z
