CVE-2026-54705 mathlive's Lack of Escaping of HTML allows for XSS
MediumCVSS 6.3
EPSS 0.30%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
MathLive provides web components for math display and input. Prior to 0.110.0, MathLive fails to escape text-mode content in \text{} and \mbox{} commands in Box.toMarkup at src/core/box.ts, in xmlEscape, scanText, and text-mode output in src/formats/atom-to-math-ml.ts, and through convertLatexToMarkup, convertLatexToMathMl, <math-span>, <math-div>, and the default identity MathfieldElement.createHTML, allowing malicious input to run arbitrary JavaScript when rendered. This issue is fixed in version 0.110.0.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm mathlive(npm) | < 0.110.0; <= 0.109.2 | 0.110.0 | Fixed |
| arnog mathlive | = < 0.110.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| arnog mathlive | = < 0.110.0 | No fix listed |
| npm mathlive(npm) | <= 0.109.2 | No fix listed |
| npm mathlive(npm) | < 0.110.0 | 0.110.0 |