CVE-2026-27121 Svelte affected by cross-site scripting via spread attributes in Svelte SSR
MediumCVSS 5.1
EPSS 0.22%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Red Hat
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.
Upgrade path
4 packages: 2 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/rhdesktop/rh-podman-desktop-ext-bootc-rhel10(Red Hat podman_desktop 0) | All versions | No fix listed | No fix yet |
| npm svelte(npm) | < 5.51.5; <= 5.51.4 | 5.51.5 | Fixed |
| svelte | < 5.51.5 | 5.51.5 | Fixed |
| sveltejs svelte | = < 5.51.5 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| sveltejs svelte | = < 5.51.5 | No fix listed |
| npm svelte(npm) | <= 5.51.4 | No fix listed |
| redhat/rhdesktop/rh-podman-desktop-ext-bootc-rhel10(Red Hat:podman_desktop:0) | All versions | No fix listed |
| svelte | < 5.51.5 | 5.51.5 |
| npm svelte(npm) | < 5.51.5 | 5.51.5 |
References
- https://github.com/sveltejs/svelte/security/advisories/GHSA-f7gr-6p89-r883 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2441532 issue-tracking
- www.cve.org
- github.com product