Home / Mathjax / Mathjax / CVE-2018-1999024
CVE-2018-1999024: is it exploited, and which versions of Mathjax are affected and fixed?
CVE-2018-1999024 is a cross-site scripting (XSS) vulnerability in Mathjax. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 08:08 UTC). Affected: mathjax before 2.7.4 (GitHub advisory GHSA-3c48-6pcv-88rm). Fixed in 2.7.4 (GitHub advisory GHSA-3c48-6pcv-88rm). Severity: Medium (5.4, CVSS 3.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 08:08 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:30 UTC.
What is CVE-2018-1999024?
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.
From the CVE record by mitre, last updated September 16, 2024, 22:46 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | mathjax | < 2.7.4 | 2.7.4 | GHSA-3c48-6pcv-88rm |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 11, 2023. Summary: Macro in MathJax running untrusted Javascript within a web browser.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| mathjax | mathjax | before 2.7.4 | application |
NVD analysis (status Modified), last modified June 17, 2026, 01:48 UTC.
How severe is CVE-2018-1999024?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.4 | CVSS 3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N | NVD |
| Medium 4.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2018-1999024 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 1.43% probability of exploitation activity in the next 30 days, percentile 73.8 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-79 Improper Neutralization of Input During Web Page Generation
Where are the vendor advisories and references?
- https://github.com/mathjax/MathJax/commit/a55da396c18cafb767a26aa9ad96f6f4199852f1 x_refsource_CONFIRM
- https://blog.bentkowski.info/2018/06/xss-in-google-colaboratory-csp-bypass.html x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- July 23, 2018
- Published
- July 23, 2018, 16:00 UTC
- CVE record updated
- September 16, 2024, 22:46 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 01:48 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:30 UTC; KEV December 3, 2026, 08:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Mathjax?
- Aug 29, 2023CVE-2023-39663 Mathjax: regular expression denial of service (ReDoS) disputed
Questions about CVE-2018-1999024
Is CVE-2018-1999024 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 08:08 UTC. FIRST's EPSS gives it a 1.43% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Mathjax are affected by CVE-2018-1999024?
mathjax before 2.7.4, per the GitHub advisory GHSA-3c48-6pcv-88rm. The tables above give every range the sources list.
Which version fixes CVE-2018-1999024?
2.7.4, per the GitHub advisory GHSA-3c48-6pcv-88rm. Check the vendor's advisory before you rely on it.
How severe is CVE-2018-1999024?
Medium (5.4, CVSS 3.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2018-1999024?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.