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.
Published: 2026-07-29
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

MathLive had an improper escaping flaw (CWE‑116) in the handling of LaTeX \text{} and \mbox{} commands, allowing untrusted input to inject raw HTML and run arbitrary JavaScript when rendered.

Affected Systems

The vulnerable component is the MathLive library developed by arnog. Versions of MathLive released before 0.110.0 contain the flaw; the issue was resolved in version 0.110.0 and later.

Risk and Exploitability

The CVSS score of 6.3 indicates a moderate severity. The EPSS score of less than 1% suggests a low probability of exploitation in the wild, and the vulnerability is not currently listed in the CISA KEV catalog. The likely attack requires an attacker to supply malicious LaTeX that contains unsafe characters within \text{} or \mbox{} to any web application that renders MathLive components, which would result in the injected JavaScript executing in the victim’s browser.

Generated by OpenCVE AI on August 2, 2026 at 07:46 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade MathLive to version 0.110.0 or later.
  • If an upgrade is not immediately feasible, sanitize or escape HTML characters in all LaTeX input before it is passed to MathLive, ensuring that \text{} and \mbox{} content is treated as plain text.
  • Verify that LaTeX input originates only from trusted sources and that the application does not expose user‑controlled LaText to the MathLive renderer without proper validation.

Generated by OpenCVE AI on August 2, 2026 at 07:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-fm7p-gw32-828p mathlive's Lack of Escaping of HTML allows for XSS
History

Thu, 30 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
First Time appeared Arnog
Arnog mathlive
Vendors & Products Arnog
Arnog mathlive

Wed, 29 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 29 Jul 2026 17:45:00 +0000

Type Values Removed Values Added
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.
Title mathlive's Lack of Escaping of HTML allows for XSS
Weaknesses CWE-116
References
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-29T17:54:49.618Z

Reserved: 2026-06-15T22:58:06.563Z

Link: CVE-2026-54705

cve-icon Vulnrichment

Updated: 2026-07-29T17:54:25.907Z

cve-icon NVD

Status : Deferred

Published: 2026-07-29T18:16:54.857

Modified: 2026-07-30T20:07:01.330

Link: CVE-2026-54705

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T08:00:04Z

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output