CVE-2018-1999024Mathjax
Medium 5.4 No auth needed
Follow: this CVE · Mathjax · Mathjax We alert you by email or Slack (account required).
- Priority
- 48
- CVSS 3.0
- 5.4
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 74
- Auth required
- No
- Published
- Jul 23, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Mathjax.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | mathjax |
< 2.7.4 |
2.7.4 |
npm install mathjax@2.7.4 |
Per OSV / GitHub Advisories (GHSA-3c48-6pcv-88rm). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mathjax | mathjax | < 2.7.4 |
Official sources
References
Links published by the sources. Open them with care.
- blog.bentkowski.info Exploit Third Party Advisory
- github.com Patch Third Party Advisory