PT-2026-65855 · Mathlive · Mathlive

CVE-2026-54705

·

Published

2026-07-29

·

Updated

2026-07-29

CVSS v3.1

6.3

Medium

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Name of the Vulnerable Software and Affected Versions MathLive versions prior to 0.110.0
Description MathLive fails to escape text-mode content within text{} and mbox{} commands, allowing malicious input to execute arbitrary JavaScript when rendered. This occurs because the Box.toMarkup function in src/core/box.ts concatenates values into the rendered span without HTML-escaping. Additionally, the MathML serializer in src/formats/atom-to-math-ml.ts emits raw values through the xmlEscape function, scanText function, and text-mode output. These outputs are then passed into innerHTML sinks via the public API, including the <math-span> and <math-div> components, as well as the convertLatexToMarkup and convertLatexToMathMl functions and the default identity MathfieldElement.createHTML function.
Recommendations Update MathLive to version 0.110.0.

Exploit

Fix

Improper Encoding or Escaping of Output

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-54705
GHSA-FM7P-GW32-828P

Affected Products

Mathlive