CVE-2018-1999024
MEDIUM 5.4CVSS 3.0Macro in MathJax running untrusted Javascript within a web browser
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.
- Published
- 23 Jul 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-3c48-6pcv-88rm
- Sources
- NVDJSONOSV GHSA-3c48-6pcv-88rmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 5.4 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.4 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mathjax | mathjaxcpe:2.3:a:mathjax:mathjax:*:*:*:*:*:*:*:* |
< 2.7.4 | 2.7.4 |
| OSV | npm | mathjax | < 2.7.4 | 2.7.4 |
References
- https://blog.bentkowski.info/2018/06/xss-in-google-colaboratory-csp-bypass.html · Exploit, Third Party Advisory, WEB
- https://github.com/mathjax/MathJax/commit/a55da396c18cafb767a26aa9ad96f6f4199852f1 · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-1999024 · ADVISORY
- https://github.com/advisories/GHSA-3c48-6pcv-88rm · ADVISORY
- https://github.com/mathjax/MathJax · PACKAGE
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 23 Jul 2018)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 27 Jul 2018)