Vulnerability library
Security checkJuly 29, 2026

mathlive's Lack of Escaping of HTML allows for XSS - mathlive

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmmathlive

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Despite the 0.104.0 patch escaping attribute-bearing constructs (\htmlData, \href), text-content reflection was missed. The \text{}, \mbox{} commands accept arbitrary characters in their body and emit them raw and unescaped into both the HTML markup and the MathML output, leading to XSS.

Recommendation

Update the mathlive package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 0.109.2
  • Patched version(s): 0.110.0

References

Could your website be exposed too?

SmartScanner can check your website for mathlive's Lack of Escaping of HTML allows for XSS - mathlive and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated July 29, 2026