CVE-2026-137004: MathML Block <= 1.2.4 - Unauthenticated Stored DOM-Based Cross-Site Scripting via Comment Field
The MathML Block plugin for WordPress is vulnerable to Stored DOM-Based Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 1.2.4 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Successful exploitation requires the targeted post to contain the plugin's MathML block, and after one initial comment approval by a moderator, WordPress core's default commentpreviouslyapproved behavior will auto-approve subsequent comments from the same visitor, making the payload live without further moderator action.
Affected Software
Event History
Frequently Asked Questions
What conditions must be met for exploitation to succeed?
The targeted post must contain the MathML Block plugin's MathML block. An attacker can submit the malicious content through the comment parameter without authentication, but the comment must become approved before the injected script is live.
Can later malicious comments be published without repeated moderator approval?
Yes. After a moderator approves one initial comment from a visitor, WordPress core's default comment_previously_approved behavior can automatically approve subsequent comments from that same visitor, allowing later payloads to become live without further moderator action.
Who is exposed to the injected script?
Any user who accesses a page containing both the MathML block and an approved malicious comment may execute the attacker-controlled script in their browser.