Commit d2480db
fix: resolve CodeQL high-severity XSS and sanitization findings
message-wizard.es6.js: Replace innerHTML-based HTML stripping with
DOMParser which safely parses without script execution.
cwm-transcript.es6.js: Loop regex tag stripping until stable to handle
malformed/nested tags like <scr<b>ipt> that bypass single-pass removal.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 454f159 commit d2480db
File tree
2 files changed
+12
-8
lines changed- build/media_source/js
2 files changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
92 | 97 | | |
93 | 98 | | |
94 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
188 | 187 | | |
189 | 188 | | |
190 | 189 | | |
| |||
0 commit comments