# GHSA-gw32-9rmw-qwww: svelte is vulnerable to XSS with textarea bind:value

- Severity: High (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-01-16T21:02:56.000Z
- Modified: 2026-02-03T03:17:01.517Z
- Weaknesses: CWE-79

## Description

### Summary

A server-side rendered `<textarea>` with two-way bound value does not have its value correctly escaped in the rendered HTML.

### Details

In SSR, `<textarea bind:value={...}>` does not have its value escaped when it is rendered into the HTML as `<textarea>...</textarea>`.

### PoC

Put this in a server-side-rendered Svelte component:

```
<script>
  let value = `test'"></textarea><script` + `>alert('BIM');</sc` + `ript>`;
</script>

<textarea bind:value />
```

### Impact

- Only affects SSR
- Needs a `<textarea bind:value>` filled by user content via two-way binding

(As written by GitHub Advisory Database.)

## Affected

- svelte (npm): from 3.0.0 before 3.59.2

## References

- <https://github.com/sveltejs/svelte/security/advisories/GHSA-gw32-9rmw-qwww> (web)
- <https://github.com/sveltejs/svelte/commit/a31dec5eb30978cff7ff4d77f4bf316841f711bc> (web)
- <https://github.com/sveltejs/svelte> (package)

## Sources

- GitHub Advisory Database: [GHSA-gw32-9rmw-qwww](https://github.com/advisories/GHSA-gw32-9rmw-qwww), CC-BY-4.0, modified 2026-02-03

---

Page: https://cve.day/GHSA-gw32-9rmw-qwww · Whole record: https://cve.day/GHSA-gw32-9rmw-qwww.json · Rebuilt by cve.day 2026-11-25T22:56:45.505Z
