Security mailing lists by PureSourceCode

GHSA-gw32-9rmw-qwww

HIGH

svelte is vulnerable to XSS with textarea bind:value

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
Published
16 Jan 2026
Last modified
3 Feb 2026
Weakness
CWE-79
Sources
OSVJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 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

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm svelte >= 3.0.0, < 3.59.2 3.59.2

References

History

  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 16 Jan 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.