Live threats

All CVEs / Mathjax

CVE-2018-1999024Mathjax

Medium 5.4 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mathjax.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
mathjaxmathjax< 2.7.4

Official sources

References

Links published by the sources. Open them with care.