Vulnerability · Published Jul 29, 2026 · Assigned by GitHub_M
CVE-2026-54705mathlive's Lack of Escaping of HTML allows for XSS
Medium 6.3
In plain English
A medium-severity security flaw in mathlive from arnog. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 23% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | mathlive | 0.110.0 | GHSA-fm7p-gw32-828p |
Affected products (as reported)
Weakness: CWE-116 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
References
- https://github.com/arnog/mathlive/security/advisories/GHSA-fm7p-gw32-828p x_refsource_CONFIRM
- https://github.com/arnog/mathlive/issues/3028 x_refsource_MISC
- https://github.com/arnog/mathlive/commit/5fe1c46153883f9ec0249a5c8c34e64aaae9cfb8 x_refsource_MISC