CVE-2026-3998

WM JqMath <= 1.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'style' Shortcode Attribute

Published Apr 15, 2026 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
Description
The WM JqMath plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'style' shortcode attribute of the [jqmath] shortcode in all versions up to and including 1.3. This is due to insufficient input sanitization and output escaping on user-supplied shortcode attributes. The generate_jqMathFormula() function directly concatenates the 'style' attribute value into an HTML style attribute without applying esc_attr() or any other escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

Analysis

AI-generated

Technical impact

The WM JqMath plugin contains a stored Cross‑Site Scripting flaw in the 'style' attribute of the [jqmath] shortcode. The plugin concatenates the raw attribute value straight into an HTML style tag without escaping, allowing an attacker to embed malicious JavaScript. If executed, the injected code runs in the context of any user who views the affected page, permitting session hijack, credential theft, defacement, or further lateral movement within the site. This vulnerability falls under Code Injection and Output Encoding weaknesses.

Affected Systems

The flaw affects the Webmindpt WM JqMath plugin for WordPress in all releases up to and including version 1.3. Any WordPress installation that has this plugin and allows users with Contributor or higher capabilities to post content is potentially exposed.

Risk and Exploitability

The CVSS v3.1 score is 6.4, indicating medium severity with a medium impact rating (confidentiality and integrity). EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting no current public exploits. The exploit requires authenticated access with at least Contributor rights and relies on the ability to insert a [jqmath] shortcode in post content. Once the attacker supplies a malicious 'style' value, the code is stored and later executed automatically when visitors load the page.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest WM JqMath release that includes output escaping for shortcode attributes or switch to a trusted alternative.
  • Restrict or remove Contributor privileges from users who do not require shortcode editing capabilities, limiting the attack surface.
  • Validate and escape any shortcode input server‑side by applying esc_attr() or an equivalent function; if the plugin version cannot be updated, temporarily disable the shortcodes on site or use a content filter to sanitize the 'style' attribute.

Generated by OpenCVE AI on April 15, 2026 at 10:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
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 Webmindpt
Webmindpt wm Jqmath
Wordpress
Wordpress wordpress
Vendors & Products Webmindpt
Webmindpt wm Jqmath
Wordpress
Wordpress wordpress
Type Values Removed Values Added
Description The WM JqMath plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'style' shortcode attribute of the [jqmath] shortcode in all versions up to and including 1.3. This is due to insufficient input sanitization and output escaping on user-supplied shortcode attributes. The generate_jqMathFormula() function directly concatenates the 'style' attribute value into an HTML style attribute without applying esc_attr() or any other escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Title WM JqMath <= 1.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'style' Shortcode Attribute
Weaknesses CWE-79
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 15, 2026, 6:08 PM
Reserved
Mar 11, 2026, 5:08 PM
Status
Deferred
Published
Apr 15, 2026, 9:16 AM
Modified
Jun 17, 2026, 10:44 AM