{"id":"CVE-2026-27121","aliases":["CVE-2026-27121","GHSA-f7gr-6p89-r883"],"related":[],"kind":"vulnerability","state":"published","title":"Svelte affected by cross-site scripting via spread attributes in Svelte SSR","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"svelte, un framework web orientado al rendimiento. Las versiones de svelte anteriores a la 5.51.5 son vulnerables a cross-site scripting (XSS) durante la renderización del lado del servidor. Al usar la sintaxis de propagación para renderizar atributos de datos no confiables, las propiedades del gestor de eventos se incluyen en la salida HTML renderizada. Si una aplicación propaga datos controlados por el usuario o externos como atributos de elementos, un atacante puede inyectar gestores de eventos maliciosos que se ejecutan en los navegadores de las víctimas. Esta vulnerabilidad está corregida en la 5.51.5.","source":"nvd"}],"published":"2026-02-19T15:18:33.000Z","modified":"2026-09-10T03:50:34.768Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":5.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 5.51.5","status":"affected"}],"vendor":"sveltejs","product":"svelte","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.51.5"}],"ecosystem":"npm","package":"svelte","purl":"pkg:npm/svelte","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.51.5"}],"vendor":"svelte","product":"svelte","cpe":"cpe:2.3:a:svelte:svelte:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/sveltejs/svelte/security/advisories/GHSA-f7gr-6p89-r883","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27121","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/sveltejs/svelte","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-02-23T19:31:36.117Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-27121","url":"https://www.cve.org/CVERecord?id=CVE-2026-27121","licence":"CVE Terms of Use","modified":"2026-02-23T19:34:18.150Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f7gr-6p89-r883","url":"https://github.com/advisories/GHSA-f7gr-6p89-r883","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:34.768Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-27121","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27121","licence":"Public domain","modified":"2026-06-17T10:26:42.290Z"}],"updatedAt":"2026-11-25T22:59:14.428Z","epss":{"score":0.00217,"percentile":0.12903,"date":"2026-12-01T12:00:22.000Z"}}