
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-4216 is a Stored Cross-Site Scripting (XSS) vulnerability in the DIOT SCADA with MQTT plugin for WordPress. It affects all versions up to and including 1.0.5.1, allowing authenticated attackers with contributor-level access or above to inject arbitrary web scripts via the plugin's diot shortcode. The vulnerability was published on June 14, 2025, and carries a CVSS v3.1 base score of 6.4 (Medium), assigned by Wordfence (Wordfence).
The root cause is insufficient input sanitization and output escaping on user-supplied attributes within the plugin's diot shortcode handler, classified as CWE-79 (Improper Neutralization of Input During Web Page Generation). An authenticated attacker with at least contributor-level WordPress access can embed a malicious shortcode containing arbitrary JavaScript into a post or page; the script executes in the browser of any user who subsequently visits the injected page. The vulnerable code is located in includes/shortcodes.php of the ecava-diot-scada plugin (Wordfence, WordPress Plugin Trac).
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of other users' browsers, enabling session cookie theft, credential harvesting, defacement, or redirection to malicious sites. Because the scope is changed (S:C in the CVSS vector), the injected script can affect users beyond the attacker's own session, including administrators. Confidentiality and integrity are both partially impacted, while availability is unaffected (Wordfence).
No public proof-of-concept exploit code or evidence of active in-the-wild exploitation has been reported for CVE-2025-4216. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.029% (0.000290), indicating a very low probability of exploitation in the near term (Feedly). Exploitation requires authenticated access at the contributor level or above, which limits the attack surface compared to unauthenticated vulnerabilities.
[diot] shortcode with a malicious attribute containing a JavaScript payload, e.g., [diot attribute="\"onmouseover=\"alert(document.cookie)"] or similar XSS vector targeting the unsanitized attribute.wp-admin/post.php or REST API endpoints containing [diot shortcode strings with unusual attribute values or encoded JavaScript.wp_posts table entries containing [diot shortcodes with embedded script tags, event handlers (e.g., onerror, onload, onmouseover), or encoded payloads in post content.includes/shortcodes.php within the ecava-diot-scada plugin directory if an attacker has escalated to file write access post-exploitation.Site administrators should update the DIOT SCADA with MQTT plugin to a version beyond 1.0.5.1 if a patched release becomes available, or deactivate and remove the plugin until a fix is confirmed. As an interim measure, restrict contributor-level and above account creation to trusted users only, and audit existing contributor accounts for unauthorized access. A Web Application Firewall (WAF) with XSS filtering rules — such as those provided by Wordfence — can help block exploitation attempts (Wordfence).
Wordfence disclosed the vulnerability on June 14, 2025, as part of their weekly WordPress vulnerability report covering June 9–15, 2025, noting it among numerous plugin-level XSS issues tracked that week (Wordfence Blog). No significant broader media coverage or notable researcher commentary beyond the initial Wordfence disclosure has been identified.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."