Skip to content

Commit 6fbdac9

Browse files
committed
fix(security): escape system code in widget href (CodeQL XSS flow)
1 parent f043d72 commit 6fbdac9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/scripts/widget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class InterscriptWidget extends HTMLElement {
210210
</div>
211211
<div class="footer">
212212
<span>Powered by <a href="https://interscript.org" target="_blank" rel="noreferrer">Interscript</a> · BSD-2-Clause</span>
213-
<span><a href="https://interscript.org/maps/${this.selected}" target="_blank" rel="noreferrer">View system →</a></span>
213+
<span><a href="https://interscript.org/maps/${this.escapeHtml(this.selected)}" target="_blank" rel="noreferrer">View system →</a></span>
214214
</div>
215215
`
216216

0 commit comments

Comments
 (0)