Skip to main content
Vulnerability Database/CVE-2025-12964

CVE-2025-12964: WordPress MPD Plugin XSS Vulnerability

CVE-2025-12964 is a stored XSS flaw in the Magical Products Display plugin for WordPress affecting versions up to 1.1.29. Attackers with contributor access can inject malicious scripts. This article covers technical details, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-12964 Overview

The Magical Products Display plugin for WordPress contains a stored Cross-Site Scripting (XSS) vulnerability in the MPD Pricing Table widget. Affected versions up to and including 1.1.29 fail to sanitize user-supplied HTML tag names passed through the mpdpr_title_tag and mpdpr_subtitle_tag parameters. Authenticated users with Contributor-level access or higher can inject arbitrary web scripts that execute in the browser of any visitor who loads the affected page. The flaw is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation).

Critical Impact

Authenticated contributors can persist arbitrary JavaScript into WordPress pages, enabling session theft, administrative account takeover, and redirection of site visitors.

Affected Products

  • WordPress Magical Products Display plugin, all versions through 1.1.29
  • MPD Pricing Table widget component
  • WordPress sites permitting Contributor-level or higher account registration

Discovery Timeline

  • 2025-11-21 - CVE-2025-12964 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-12964

Vulnerability Analysis

The vulnerability resides in the MPD Pricing Table widget shipped with the Magical Products Display plugin. The widget accepts two parameters, mpdpr_title_tag and mpdpr_subtitle_tag, that are intended to control the HTML tag wrapping title and subtitle text (for example, h2 or h3). The plugin renders these values directly into the page markup without validating them against an allowlist of safe tag names or escaping their contents. An attacker can supply a value that closes the intended tag context and injects a <script> element or an event handler attribute. Because the injected payload is stored in the post or page configuration, it executes for every visitor who renders the affected content.

Root Cause

The root cause is insufficient input sanitization and output escaping on the mpdpr_title_tag and mpdpr_subtitle_tag fields inside includes/widgets/pricing-table.php at lines 2149 and 2167 of the vulnerable release. A safe implementation would restrict the values to a fixed set of HTML heading and text tags before echoing them into the response.

Attack Vector

Exploitation requires an authenticated account with at least Contributor privileges. The attacker edits or creates content that uses the MPD Pricing Table widget and submits a crafted tag-name value containing script content. When any user, including administrators, subsequently views the rendered page, the injected script executes under the site's origin. This can be used to steal authentication cookies, perform actions on behalf of the victim, or pivot toward full site compromise.

Refer to the WordPress Pricing Table Widget Source and the Wordfence Vulnerability Report for technical details.

Detection Methods for CVE-2025-12964

Indicators of Compromise

  • Post or page metadata for MPD Pricing Table widgets containing tag-name values other than expected HTML tags such as h1 through h6, p, span, or div.
  • Presence of <script>, onerror, onload, or javascript: substrings inside mpdpr_title_tag or mpdpr_subtitle_tag fields stored in the wp_postmeta table.
  • Unexpected outbound requests from browsers rendering pages that use the pricing table widget.

Detection Strategies

  • Scan the WordPress database for widget configurations containing angle brackets, quotes, or JavaScript keywords in the affected parameters.
  • Review Contributor and Author account activity for edits to pages containing the pricing table widget shortly before the vulnerability disclosure date.
  • Deploy Content Security Policy (CSP) reporting to surface unexpected inline script execution on public pages.

Monitoring Recommendations

  • Enable WordPress audit logging for post revisions and user-role changes on Contributor and Author accounts.
  • Monitor web server logs for POST requests to wp-admin/admin-ajax.php and wp-admin/post.php that carry mpdpr_title_tag or mpdpr_subtitle_tag parameters.
  • Alert on new administrator accounts, plugin installations, or theme edits following pricing-table page publication events.

How to Mitigate CVE-2025-12964

Immediate Actions Required

  • Update the Magical Products Display plugin to a release later than 1.1.29 once available from the vendor.
  • Audit existing pages that use the MPD Pricing Table widget and remove any suspicious tag-name values.
  • Restrict Contributor and Author account creation and review privileges assigned to non-trusted users.
  • Rotate credentials for administrators who may have viewed compromised pages, and invalidate active sessions.

Patch Information

The plugin author committed a fix tracked in the WordPress Magical Products Display Changeset. Site operators should upgrade to the patched release. Confirm the installed version through the WordPress admin Plugins screen after applying the update.

Workarounds

  • Temporarily deactivate the Magical Products Display plugin until the patched version is deployed.
  • Remove Contributor and Author privileges from untrusted users, limiting the population able to exploit the widget.
  • Deploy a web application firewall rule that blocks requests containing <, >, or script substrings in mpdpr_title_tag and mpdpr_subtitle_tag parameters.
  • Enforce a strict Content Security Policy that disallows inline script execution on pages rendering the pricing table widget.
bash
# Example: search WordPress database for suspicious widget metadata
wp db query "SELECT post_id, meta_key, meta_value \
  FROM wp_postmeta \
  WHERE meta_value LIKE '%mpdpr_title_tag%' \
     OR meta_value LIKE '%mpdpr_subtitle_tag%';"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.