{"id":"CVE-2026-27121","published":"2026-02-20T22:27:36Z","modified":"2026-02-23T19:34:18Z","title":"Svelte affected by cross-site scripting via spread attributes in Svelte SSR","vendor":"sveltejs","product":"svelte","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00217,"percentile":0.12382,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/sveltejs/svelte/security/advisories/GHSA-f7gr-6p89-r883","tags":["x_refsource_CONFIRM"]}],"priority":{"score":6.0,"factors":[{"name":"EPSS percentile","points":2.48},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"sveltejs","affectedVersions":[{"vendor":"sveltejs","product":"svelte","versions":["< 5.51.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-23T19:31:36.117864Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"svelte","vulnerableRanges":["<5.51.5"],"patched":["5.51.5"],"from":["GHSA-f7gr-6p89-r883"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting vulnerability in the Svelte web framework (sveltejs/svelte), affecting versions prior to 5.51.5, where server-side rendering includes event handler properties in the HTML output when element attributes are rendered via spread syntax from untrusted data. An attacker who can supply data that an application spreads as element attributes can inject malicious event handlers that execute in victims' browsers, with the attack requiring high attack complexity and privileges on the target, while user interaction is not required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:16Z"},"euvd":{"id":"EUVD-2026-7521","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sveltejs-svelte-cve-2026-27121","children":[{"from":"CVE-2026-27121","to":"CVE-2026-42599","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-pr6f-5x2q-rwfp","via":"reference","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27121"},{"kind":"similar","provenance":"machine","score":0.82,"basis":"same product + CWE + description similarity"}]}]}}