mirror of https://github.com/sveltejs/svelte
parent
a0c7f28915
commit
f7c80da18c
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: always escape option body in SSR
|
||||
@ -0,0 +1 @@
|
||||
<!--[--><select><option>a</option><script>alert("pwnd")</script><option>puppa</option></select><!--]-->
|
||||
@ -0,0 +1,6 @@
|
||||
<script>
|
||||
let selectedBook = $state("a</option><sc"+"ript>alert(\"pwnd\")</sc"+"ript><option>puppa");
|
||||
</script>
|
||||
<select>
|
||||
<option>{selectedBook}</option>
|
||||
</select>
|
||||
Loading…
Reference in new issue