Skip to content
Fencer Intel
medium 5.4

CVE-2018-1999024 json

Macro in MathJax running untrusted Javascript within a web browser

published 2018-07-23 8 y ago modified 2026-06-17 4 mo ago also GHSA-3c48-6pcv-88rm , EUVD-2018-0212

cvss
5.4
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.4%
EPSS 1.4% chance of exploitation in 30 days, percentile 73%
public exploits
0
none known

Summary

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.

Patch / fix

  • npm mathjax 2.7.4
  • mathjax mathjax 2.7.4
  • mathjax Debian 14, Debian 13, Debian 12 2.7.4+dfsg-1

debian advisories DEBIAN-CVE-2018-1999024

  • numpy Azure Linux 3.0 1.26.3-4

azure linux advisories AZL-41294

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

  • mathjax Arch Linux 2.7.4-1

arch linux advisories AVG-822

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-1999024 updated cvss 6.1

mathjax: Cross-site scripting (XSS) flaw in the \unicode macro

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.45% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • blog.bentkowski.info https://blog.bentkowski.info/2018/06/xss-in-google-colaboratory-csp-bypass.html referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.0 5.4 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N
GitHub 3.0 5.4 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
npm mathjax
<2.7.4
2.7.4

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.