mathlive's Lack of Escaping of HTML allows for XSS
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| arnog | mathlive | before 0.110.0 | 0.110.0 | Patch available | CNA |
| — | mathlive (npm) | before 0.110.0 | 0.110.0 | Patch available | GHSA-fm7p-gw32-828p |
- mathlive Vendorarnog Affected before 0.110.0 Fixed in 0.110.0 Patch available CNA
- mathlive (npm) Vendor— Affected before 0.110.0 Fixed in 0.110.0 Patch available GHSA-fm7p-gw32-828p
Remediation
- Fix · CNA mathlive (arnog) Fixed in 0.110.0
- Fix · GHSA-fm7p-gw32-828p mathlive (npm) Fixed in 0.110.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-54705
- 2026-10-03 Alias added: GHSA-fm7p-gw32-828p
References
Sources
- CVE-2026-54705 · CVE Program
- CVE-2026-54705 · NVD
- FIRST EPSS
- GHSA-fm7p-gw32-828p · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences