{"id":"GHSA-gw32-9rmw-qwww","aliases":["GHSA-gw32-9rmw-qwww"],"related":[],"kind":"vulnerability","state":"published","title":"svelte is vulnerable to XSS with textarea bind:value","summary":"### Summary\n\nA server-side rendered `<textarea>` with two-way bound value does not have its value correctly escaped in the rendered HTML.\n\n### Details\n\nIn SSR, `<textarea bind:value={...}>` does not have its value escaped when it is rendered into the HTML as `<textarea>...</textarea>`.\n\n### PoC\n\nPut this in a server-side-rendered Svelte component:\n\n```\n<script>\n  let value = `test'\"></textarea><script` + `>alert('BIM');</sc` + `ript>`;\n</script>\n\n<textarea bind:value />\n```\n\n### Impact\n\n- Only affects SSR\n- Needs a `<textarea bind:value>` filled by user content via two-way binding","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Summary\n\nA server-side rendered `<textarea>` with two-way bound value does not have its value correctly escaped in the rendered HTML.\n\n### Details\n\nIn SSR, `<textarea bind:value={...}>` does not have its value escaped when it is rendered into the HTML as `<textarea>...</textarea>`.\n\n### PoC\n\nPut this in a server-side-rendered Svelte component:\n\n```\n<script>\n  let value = `test'\"></textarea><script` + `>alert('BIM');</sc` + `ript>`;\n</script>\n\n<textarea bind:value />\n```\n\n### Impact\n\n- Only affects SSR\n- Needs a `<textarea bind:value>` filled by user content via two-way binding","format":"markdown","source":"ghsa"}],"published":"2026-01-16T21:02:56.000Z","modified":"2026-02-03T03:17:01.517Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:L/VA:N/SC:H/SI:H/SA:N","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:L/VA:N/SC:H/SI:H/SA:N","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.59.2"}],"ecosystem":"npm","package":"svelte","purl":"pkg:npm/svelte","source":"ghsa"}],"references":[{"url":"https://github.com/sveltejs/svelte/security/advisories/GHSA-gw32-9rmw-qwww","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sveltejs/svelte/commit/a31dec5eb30978cff7ff4d77f4bf316841f711bc","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sveltejs/svelte","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gw32-9rmw-qwww","url":"https://github.com/advisories/GHSA-gw32-9rmw-qwww","licence":"CC-BY-4.0","modified":"2026-02-03T03:17:01.517Z"}],"updatedAt":"2026-11-25T22:56:45.505Z"}