Vulnerability library
Security checkSeptember 11, 2023

Macro in MathJax running untrusted Javascript within a web browser

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

Medium severitynpmmathjax

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

MathJax version prior to version 2.7.4 contains a Cross Site Scripting (XSS) vulnerability in the \unicode{} macro that can result in Potentially untrusted Javascript running within a web browser. This attack appear to be exploitable via The victim must view a page where untrusted content is processed using Mathjax.

Recommendation

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

  • Affected version(s): < 2.7.4
  • Patched version(s): 2.7.4

References

Could your website be exposed too?

SmartScanner can check your website for Macro in MathJax running untrusted Javascript within a web browser and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 11, 2023