Intel

AIKIDO-2026-931838

drupal/mathjax is vulnerable to Cross-site Scripting (XSS)

CVE-2026-107252Published Oct 8, 2026
October 8, 2026

75

CVE Score

High

Cross-site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

The MathJax module renders LaTeX on a Drupal site by loading the MathJax library from a CDN or a local copy. Affected versions ship library configurations that omit MathJax Safe mode, so JavaScript inside the TeX being formatted is not escaped. Content rendered by the module can therefore run script in the browser of anyone who views the page. The fix adds the Safe configuration to the default CDN and local library URLs, updates existing CDN URLs to include it, and warns on the status report when a custom configuration still leaves Safe mode disabled.

How do I fix this?

Upgrade the drupal/mathjax library to the patch version. If the status report still warns that safe mode is not enabled, add Safe mode to the CDN URL or custom MathJax configuration.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and MathJax Safe mode is not enabled.

Versions

0.0.1 - 4.1.1

Fixed in 4.1.2

Background info

drupal/mathjax is vulnerable to Cross-site Scripting (XSS) in versions 0.0.1 - 4.1.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea