Skip to content
OpenAdvisories
Medium · 5.4 CVE-2018-1999024 EUVD-2018-0212GHSA-3c48-6pcv-88rm

Macro in MathJax running untrusted Javascript within a web browser

Published Jul 23, 2018 · Updated Sep 16, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 mathjax 2.7.4+dfsg-1 —
Debian 13 mathjax 2.7.4+dfsg-1 —
Debian 12 mathjax 2.7.4+dfsg-1 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS mathjax No fix yet —
Ubuntu 16.04 LTS mathjax No fix yet —
Ubuntu 14.04 LTS mathjax No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 numpy 1.26.3-4 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm mathjax < 2.7.4 2.7.4 GHSA-3c48-6pcv-88rm

References