CVE-2026-54705
MEDIUM 6.3CVSS 3.1mathlive's Lack of Escaping of HTML allows for XSS
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
- 29 Jul 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-116
- Also known as
- GHSA-fm7p-gw32-828p
- Sources
- NVDJSONOSV GHSA-fm7p-gw32-828pJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | mathlive | < 0.110.0 | 0.110.0 |
References
- https://github.com/arnog/mathlive/commit/5fe1c46153883f9ec0249a5c8c34e64aaae9cfb8 · WEB
- https://github.com/arnog/mathlive/issues/3028 · WEB
- https://github.com/arnog/mathlive/security/advisories/GHSA-fm7p-gw32-828p · WEB
- https://github.com/arnog/mathlive · PACKAGE
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 29 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Jul 2026)