MathML Block Plugin Vulnerability (CVE-2026-137004)

On this page

Security Alert Summary

The MathML Block plugin for WordPress (versions up to and including 1.2.4) contains a stored, DOM-based cross-site scripting (XSS) vulnerability in the handling of the “comment” parameter. Insufficient input sanitization and output escaping can allow an unauthenticated attacker to inject JavaScript that executes when a user views an affected page. WordPress core behavior related to comment approval can allow an initially approved comment to enable automatic approval of subsequent comments from the same visitor, making payloads persist without further moderator action.

CVE Details

  • CVE ID: CVE-2026-137004
  • Affected component: MathML Block plugin for WordPress
  • Affected versions: all versions up to and including 1.2.4
  • Published: December 2, 2026 at 12:17:21 PM
  • Last modified: December 2, 2026 at 12:17:21 PM
  • CVSS v3.1: Base Score 7.2, Severity HIGH, Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
  • Authentication / Privileges / User interaction: No authentication required; Privileges Required: NONE; User Interaction: NONE
  • Primary impact: Confidentiality: LOW; Integrity: LOW; Availability: NONE
  • CWE: CWE-79 (Improper Neutralization of Input During Web Page Generation)

Technical Details

The vulnerability is a stored DOM-based cross-site scripting issue caused by insufficient input sanitization and output escaping for the “comment” parameter. When a comment containing a malicious payload is stored and subsequently rendered within a page that includes the plugin’s MathML block, the injected script can execute in the context of a visiting user’s browser.

Successful exploitation requires that the targeted post contains the MathML block provided by the plugin. The disclosure states that after an initial comment is approved by a moderator, WordPress core’s default comment_previously_approved behavior may cause subsequent comments from the same visitor to be auto-approved. This can allow an attacker to make a malicious payload live after a single manual approval, without additional moderator interaction.

The root cause is missing or insufficient sanitization and escaping for comment input and the rendered output in the MathML block. The description does not name specific plugin functions or REST endpoints beyond the use of the “comment” parameter and the WordPress core approval behavior.

How This Could Impact Your Website

Consider a site with multiple WordPress users: a site owner, internal staff who manage content, and external contributors or contractors who leave comments. If an attacker posts a crafted comment on a post that uses the MathML block and one moderator manually approves an initial comment from that visitor, subsequent comments from the same visitor could be auto-approved. That could cause malicious scripts to execute in the browsers of staff or contributors who view the affected post.

Practical consequences include exposure of information visible to the browser context (for example, data accessible via DOM), increased risk of targeted phishing or social engineering against internal staff whose browsers execute the payload, and unauthorized actions performed within the limits of a victim’s browser session. These impacts align with the CVSS rating of low confidentiality and integrity impact rather than full site takeover.

If you’re unsure whether your site is affected or how to assess your current user roles and plugins, it may be worth having a professional review.

Recommended Actions

  • Update the affected plugin as soon as a patched version is available.
  • Review and reduce unnecessary user roles, especially contributor roles that can submit comments or content.
  • Enforce strong passwords and enable two-factor authentication for editors and administrators.
  • Remove unused or unmaintained plugins from your site.
  • Monitor site activity and logs for unusual behavior, including unexpected comment approvals or unfamiliar user accounts.

If you’d like help reviewing your plugins, user roles, or overall WordPress security posture, our team at Freshy is happy to help.


References