{"id":"CVE-2026-54705","aliases":["GHSA-fm7p-gw32-828p"],"url":"https://o3.security/vulnerability/CVE-2026-54705","summary":"mathlive's Lack of Escaping of HTML allows for XSS","details":"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-29T17:21:20.414Z","modified":"2026-08-12T03:51:46.977630193Z","cvss":{"score":6.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"},"epss":{"score":0.00208,"percentile":0.11171,"asOf":"2026-09-15"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"mathlive","fixedVersion":"0.110.0"}],"fix":{"url":"https://github.com/arnog/mathlive/commit/5fe1c46153883f9ec0249a5c8c34e64aaae9cfb8","label":"arnog/mathlive@5fe1c46"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54705.json"},{"type":"ADVISORY","url":"https://github.com/arnog/mathlive/security/advisories/GHSA-fm7p-gw32-828p"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54705"},{"type":"REPORT","url":"https://github.com/arnog/mathlive/issues/3028"},{"type":"FIX","url":"https://github.com/arnog/mathlive/commit/5fe1c46153883f9ec0249a5c8c34e64aaae9cfb8"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:46.977630193Z"}}