CVE-2026-107252

MathJax: LaTeX for Drupal - Critical - Cross site scripting - SA-CONTRIB-2026-195

Published Oct 30, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting") vulnerability in Drupal MathJax: LaTeX for Drupal allows Cross-Site Scripting (XSS). This issue affects MathJax: LaTeX for Drupal versions: from 0.0.0 to 4.1.2.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Drupal MathJax: LaTeX for Drupal patch or upgrade to a version above 4.1.2
  • Disable or remove the MathJax: LaTeX module from production sites that do not require it
  • Implement content filtering or sanitization for LaTeX input to ensure only safe markup is rendered

Generated by OpenCVE AI on October 30, 2026 at 21:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
References
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Drupal
Drupal mathjax: Latex For Drupal
Vendors & Products Drupal
Drupal mathjax: Latex For Drupal
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N'}

Type Values Removed Values Added
Description Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting") vulnerability in Drupal MathJax: LaTeX for Drupal allows Cross-Site Scripting (XSS). This issue affects MathJax: LaTeX for Drupal versions: from 0.0.0 to 4.1.2.
Title MathJax: LaTeX for Drupal - Critical - Cross site scripting - SA-CONTRIB-2026-195
Weaknesses CWE-79
References
Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
drupal
Published
Updated
Oct 30, 2026, 7:40 PM
Reserved
Oct 7, 2026, 3:25 PM
Status
Awaiting Analysis
Published
Oct 30, 2026, 4:17 AM
Modified
Oct 30, 2026, 8:16 PM