# CVE-2026-54705: mathlive's Lack of Escaping of HTML allows for XSS

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-29T17:21:20.414Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: GHSA-fm7p-gw32-828p
- Weaknesses: CWE-116
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- arnog mathlive: < 0.110.0
- mathlive (npm): before 0.110.0

## Every score

- GitHub_M: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 6.3 Medium `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> (exploit, web)
- <https://github.com/arnog/mathlive/issues/3028> (web)
- <https://github.com/arnog/mathlive/commit/5fe1c46153883f9ec0249a5c8c34e64aaae9cfb8> (web)
- <https://github.com/arnog/mathlive> (package)

## Sources

- CVE List: [CVE-2026-54705](https://www.cve.org/CVERecord?id=CVE-2026-54705), CVE Terms of Use, modified 2026-07-29
- GitHub Advisory Database: [GHSA-fm7p-gw32-828p](https://github.com/advisories/GHSA-fm7p-gw32-828p), CC-BY-4.0, modified 2026-07-29
- NVD: [CVE-2026-54705](https://nvd.nist.gov/vuln/detail/CVE-2026-54705), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-54705 · Whole record: https://cve.day/CVE-2026-54705.json · Rebuilt by cve.day 2026-11-25T22:59:30.463Z
