Skip to content
OpenAdvisories
Medium · 6.3 CVE-2026-54705 EUVD-2026-50421GHSA-fm7p-gw32-828p

mathlive's Lack of Escaping of HTML allows for XSS

Published Jul 29, 2026 · Updated Jul 29, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
arnog mathlive < 0.110.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm mathlive < 0.110.0 0.110.0 GHSA-fm7p-gw32-828p

References