JavaScriptSeverity: MediumStatus: Published
Setting .value on a code-input element writes it as unescaped HTML (DOM XSS)
Under some conditions, setting the value of a code-input element from JavaScript inserts that value into the DOM as unescaped HTML, so script in the value can run with access to the whole page. Fixed in 2.10.0 and backported to earlier minor lines.
Timeline
- Found
- Reported via email
- Advisory published
- Entry last updated
Machine-readable: JSON · Markdown · ID security/javascript/WebCoder49__code-input/2026-11-01-value-setter-dom-xss
If this work is useful to you, you can support it on Buy Me a Coffee.