{"id":"CVE-2026-54705","published":"2026-07-29T17:21:20Z","modified":"2026-07-29T17:54:49Z","title":"mathlive's Lack of Escaping of HTML allows for XSS","vendor":"arnog","product":"mathlive","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00299,"percentile":0.23187,"provenance":"source"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/arnog/mathlive/security/advisories/GHSA-fm7p-gw32-828p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/arnog/mathlive/issues/3028","tags":["x_refsource_MISC"]},{"url":"https://github.com/arnog/mathlive/commit/5fe1c46153883f9ec0249a5c8c34e64aaae9cfb8","tags":["x_refsource_MISC"]}],"priority":{"score":9.0,"factors":[{"name":"EPSS percentile","points":4.64},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"arnog","affectedVersions":[{"vendor":"arnog","product":"mathlive","versions":["< 0.110.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-29T17:54:40.585652Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"mathlive","vulnerableRanges":["<0.110.0"],"patched":["0.110.0"],"from":["GHSA-fm7p-gw32-828p"],"provenance":"source"}],"summary":{"text":"MathLive, a web component library for math display and input, fails to escape text-mode content inside \\text{} and \\mbox{} commands across its markup and LaTeX conversion code paths, including the default MathfieldElement.createHTML. An attacker who can supply crafted input that is rendered by MathLive can cause arbitrary JavaScript to run in the victim's browser, and exploitation requires low-privileged authentication with no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:36Z"},"euvd":{"id":"EUVD-2026-50421","exploited":false,"provenance":"source"}}