CVE-2026-27121: sveltejs svelte · Cross-site Scripting
Affects sveltejs svelteSource CVE Database V5
Not known to be exploited · CVSS 5.1 Medium : upgrade to 5.51.5 when convenient.
Data as of 29 Oct 2026, 19:04 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 12% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.51.5
CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:H/SI:H/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 20 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade sveltejs svelte to 5.51.5.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| sveltejssvelte | Affected
| Fixed in
|
AI-suggested
To mitigate CVE-2026-27121, organizations should immediately upgrade all Svelte instances to version 5.51.5 or later, where the vulnerability is fixed. Beyond patching, developers must audit their codebases for usage of spread syntax that renders attributes from untrusted or external data sources. Avoid spreading user-controlled data directly into element attributes, especially event handlers. Implement strict input validation and sanitization to ensure that only safe attribute names and values are allowed. Consider using allowlists for attributes and explicitly exclude event handler properties when rendering dynamic attributes. Employ Content Security Policy (CSP) headers to restrict script execution and reduce the impact of potential XSS. Conduct thorough security testing, including static analysis and dynamic scanning, focusing on injection vectors in server-side rendering logic. Educate development teams on secure coding practices related to attribute spreading and server-side rendering in modern frameworks.
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.