Intel

AIKIDO-2026-10767

monocart-code-viewer is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

70

High Risk

This Affects:

JSmonocart-code-viewer
0.0.1 - 1.1.5
Fixed in 1.2.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to cross-site scripting (XSS) because untrusted input was previously written to the DOM using innerHTML, allowing attacker-controlled HTML or script-capable markup to be interpreted by the browser. This issue was fixed by replacing innerHTML with textContent, which renders the input as plain text instead of executable markup. An attacker might exploit this by supplying crafted input that injects malicious script or event handlers into the page, potentially leading to session theft, account takeover, or unauthorized actions in the victim’s browser.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

monocart-code-viewer is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 1.1.5.

How to fix this

Upgrade the monocart-code-viewer library to the patch version.