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.

Severity (CVSS 3.1)6.3Medium
Exploit odds (30 days)0.3%top 77.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npmmathlive0.110.0GHSA-fm7p-gw32-828p

Affected products (as reported)

VendorProductVersions
arnog mathlive < 0.110.0

Weakness: CWE-116 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

References