Technical impact
The vulnerability is an improper neutralization of user input during web page generation that allows malicious code to be embedded in MathJax formulas. The attacker could inject script payloads that execute in the context of the user’s browser, potentially stealing session cookies, defacing content, or performing actions on behalf of the user. This is a traditional CWE‑79 flaw and can be leveraged by anyone who can create or modify content that is rendered by the MathJax module. The issue does not require elevated privileges or authentication, making it exploitable through standard content submission mechanisms. Inferred attack vectors include comment fields, page editing forms, or any interface that accepts LaTeX input.
Affected Systems
Drupal MathJax: LaTeX for Drupal is the affected product. All versions from 0.0.0 through 4.1.2 are vulnerable.
Risk and Exploitability
The EPSS score is < 1% and the vulnerability is not listed in the CISA KEV catalog, so the observed exploitation probability is uncertain. However, the CWE‑79 classification and the fact that the flaw allows code execution in a browser strongly indicate that the risk to users who view vulnerable content is significant. The CVSS score of 5.4 indicates moderate severity, but the presence of a client‑side script injection flaw underscores the need for remediation. Attackers can exploit this flaw by infiltrating the web interface that renders MathJax formulas, making it a high‑impact risk for any site that uses the module to display user‑provided LaTeX or mathematical expressions.