Read the docs
TI-2026-66182 Aliases GHSA-gw32-9rmw-qwww

svelte is vulnerable to XSS with textarea bind:value

Priority LOW 38CWE-79Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Cross-site scripting
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-79.

Summary

### 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

Why it matters now

Fix Fixed svelte (npm): 3.59.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—svelte (npm)3.0.0 to before 3.59.23.59.2Patch availableGHSA-gw32-9rmw-qwww
  • svelte (npm) Vendor— Affected 3.0.0 to before 3.59.2 Fixed in 3.59.2 Patch available GHSA-gw32-9rmw-qwww

Remediation

  • Fix · GHSA-gw32-9rmw-qwww svelte (npm) Fixed in 3.59.2 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-gw32-9rmw-qwww

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences