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.
Published: 2026-04-15
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting via the 'style' attribute of the [jqmath] shortcode
Action: Apply Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Wed, 15 Apr 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 15 Apr 2026 15:15:00 +0000

Type Values Removed Values Added
First Time appeared Webmindpt
Webmindpt wm Jqmath
Wordpress
Wordpress wordpress
Vendors & Products Webmindpt
Webmindpt wm Jqmath
Wordpress
Wordpress wordpress

Wed, 15 Apr 2026 09:00:00 +0000

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'}


Subscriptions

Webmindpt Wm Jqmath
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-15T18:08:29.456Z

Reserved: 2026-03-11T17:08:45.978Z

Link: CVE-2026-3998

cve-icon Vulnrichment

Updated: 2026-04-15T18:08:26.826Z

cve-icon NVD

Status : Received

Published: 2026-04-15T09:16:32.253

Modified: 2026-04-15T09:16:32.253

Link: CVE-2026-3998

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-15T14:53:16Z

Weaknesses