Skip to main content

Drupal MathJax EUVDEUVD-2026-113580

| CVE-2026-107252 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-10-30 drupal GHSA-cxwv-8h42-979j
5.4
CVSS 3.1 · Vendor: drupal
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Inject crafted LaTeX payload into content
  2. Delivery
    Module fails to sanitize during page generation
  3. Exploit
    Victim views rendered page
  4. Execution
    Script executes in victim browser
  5. Impact
    Session hijack or data theft in user context

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the MathJax: LaTeX for Drupal module (any version from 0.0.0 up to but not including 4.1.2) to be installed and enabled, and depends on an attacker-controlled payload being processed through the module's LaTeX page-generation path. The CVSS vector requires victim user interaction (UI:R) - a user must view the page containing the unsanitized payload - which limits exploitation to opportunistic or social-engineering delivery rather than silent mass exploitation. The exact prerequisite for injecting the payload (e.g., which Drupal permission or content/comment field feeds the vulnerable LaTeX renderer) is not described in the available sources; although the provided vector lists PR:N, whether genuinely unauthenticated input reaches the sink is unverified and should be confirmed against SA-CONTRIB-2026-195. Impact is bounded to the victim's browser context (low confidentiality and integrity, no availability impact).

Impact

This is a moderate-severity stored/reflected Cross-Site Scripting flaw (CWE-79) in the Drupal contrib module 'MathJax: LaTeX for Drupal', scored CVSS 5.4 (AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N). The signals are internally consistent and point to a real-but-not-urgent issue rather than an emergency. The CVSS vector indicates network reachability with low attack complexity but requires user interaction (UI:R), and impact is limited to low confidentiality and low integrity with no availability impact - characteristic of browser-context script injection rather than server compromise. EPSS reinforces low real-world exploitation pressure at 0.15% (4th percentile), and there is no CISA KEV listing, so there is no confirmed active exploitation. The vuln.today decision label is 'this_month', indicating a routine patch priority, not act_now/emergency. One tension to flag explicitly: the vector states PR:N (no privileges), yet XSS in a LaTeX-rendering Drupal module typically depends on an attacker being able to submit content containing the malicious payload - the sources do not describe the exact trigger, so whether truly unauthenticated input reaches the sink is not confirmed from available data and should be verified against the Drupal advisory SA-CONTRIB-2026-195. Overall this is a legitimate but low-urgency issue: patch within the normal cycle.

Exploit ScenarioDerived

An attacker supplies crafted LaTeX/markup containing a malicious script payload that the module fails to neutralize when generating the page; when a victim user views the rendered content, the script executes in their browser session. Because the CVSS vector requires user interaction (UI:R) and yields only low confidentiality/integrity impact, realistic outcomes are session/cookie theft or limited actions in the victim's context rather than server takeover. A public PoC reference exists (vuldb.com/vuln/428860); it is not verified as working exploit code, and the exact trigger is not described in the available sources.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 30, 2026

Cross-site scripting in the Drupal contrib module 'MathJax: LaTeX for Drupal' (versions 0.0.0 through 4.1.2) lets an attacker get an unsanitized payload rendered into a generated page, executing script in a victim's browser session; the victim must view the affected page (UI:R), which limits this to opportunistic or social-engineering delivery rather than silent mass exploitation. Impact is bounded to low confidentiality and integrity loss in the victim's browser context with no availability impact, and the assessed vector requires a low-privileged authenticated position (PR:L) even though the published score lists PR:N. There is no CISA KEV entry and no public exploit identified at time of analysis; EPSS is 0.15% (4th percentile), and the vendor has released a fixed version.

RemediationAI

Upgrade the MathJax: LaTeX for Drupal module to 4.1.2 or later - the vendor has released a patch and the EUVD range confirms 4.1.2 is the fixed version - following the instructions in Drupal SA-CONTRIB-2026-195 (https://www.drupal.org/sa-contrib-2026-195); the advisory is the authoritative source for the exact upgrade steps and any module-specific notes. The affected module must be installed and enabled for exposure, so sites that do not use it are not affected and can remove it rather than upgrade. Because exploitation requires a victim to view the page carrying the unsanitized LaTeX payload, reducing the set of users who can submit content that feeds the renderer and limiting where that content is displayed lowers exposure, but these are partial constraints on delivery rather than a substitute for updating, and the vendor positions updating as the complete fix. Vulnerability management references are https://vuldb.com/vuln/428860 and https://nvd.nist.gov/vuln/detail/CVE-2026-107252.

Affected VersionsENISA

MathJax: LaTeX for Drupal 0.0.0 <4.1.2

Affected Packages

composer drupal/mathjax fix: 4.1.2
euvd mathjax_latex_for_drupal fix: 4.1.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is CWE-79 (Improper Neutralization of Input During Web Page Generation): the MathJax: LaTeX for Drupal module builds page output from LaTeX input without adequately neutralizing it, so markup reaching the renderer can break out into the page as script rather than inert math content. The affected component is the Drupal contrib module identified by CPE cpe:2.3:a:drupal:mathjax:_latex_for_drupal, which integrates LaTeX math rendering into Drupal content; because Drupal renders this through its theme/page pipeline, the vulnerable sink sits in a web page generation path rather than in a standalone service. The assessed vector (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N) reflects remote delivery, low attack complexity, a low-privileged authenticated position, mandatory victim interaction, and changed scope because script executes in the victim's browser context. The trigger details - specifically which Drupal permission or content/comment field feeds the vulnerable LaTeX renderer, and whether genuinely unauthenticated input can reach the sink as the published PR:N metric suggests - are not described in the available sources and should be confirmed against SA-CONTRIB-2026-195.

Know when Mathjax gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (drupal) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Submitting the payload to a LaTeX-rendered content field typically needs an authoring account (PR:L); script executes in the victim's browser authority (S:C), requires viewing (UI:R), with low C/I and no availability impact.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (drupal).

CVSS VectorVendor: drupal

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

3
CVSS changed
Oct 30, 2026 - 20:23 NVD
5.4 (MEDIUM)
Patch available
Oct 30, 2026 - 04:01 EUVD
CVE Published
Oct 30, 2026 - 03:10 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Low
niche Drupal contrib module for LaTeX math rendering, limited site footprint
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy