VDB
Sign up
MEDIUM5.4

GHSA-3c48-6pcv-88rm

Macro in MathJax running untrusted Javascript within a web browser

Quick fix

GHSA-3c48-6pcv-88rm — mathjax: upgrade to the fixed version with the command below.

npm install mathjax@2.7.4

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/mathjax
Introduced in: 0Fixed in: 2.7.4
Fixnpm install mathjax@2.7.4

References