CVE-2018-1999024 Macro in MathJax running untrusted Javascript within a web browser
An XSS vulnerability in MathJax allows attackers to execute arbitrary JavaScript in a victim's browser via the unicode macro.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2018-1999024?
CVE-2018-1999024 is a medium-severity cross-site scripting vulnerability in n/a, published on 23 Jul 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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. This vulnerability appears to have been fixed in 2.7.4 and later.
Weakness: CWE-79
Which versions are affected by CVE-2018-1999024?
2 open source packages ship an affected version, including mathjax. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mathjax npm | All versions | 2.7.4 |
mathjax npm | All versions | 2.7.4 |
Products include Mathjax Mathjax.
How do I fix CVE-2018-1999024?
Upgrade mathjax to 2.7.4 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2018-1999024 being exploited?
There is no known exploitation of CVE-2018-1999024 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as AZL-41294, CVE-2018-1000214, DEBIAN-CVE-2018-1999024, GHSA-3c48-6pcv-88rm, UBUNTU-CVE-2018-1999024.