CVE-2025-69360 Overview
CVE-2025-69360 is a DOM-Based Cross-Site Scripting (XSS) vulnerability affecting TheGem Theme Elements (for WPBakery) WordPress plugin developed by CodexThemes. This vulnerability allows attackers to inject malicious scripts that execute in the context of victims' browsers by exploiting improper neutralization of user input during web page generation.
Critical Impact
Authenticated attackers with low privileges can execute arbitrary JavaScript in victims' browsers, potentially leading to session hijacking, credential theft, website defacement, or malware distribution through affected WordPress sites.
Affected Products
- TheGem Theme Elements (for WPBakery) versions up to and including 5.11.0
- WordPress installations using the thegem-elements plugin
- WPBakery Page Builder integrations with TheGem Theme
Discovery Timeline
- 2026-01-06 - CVE-2025-69360 published to NVD
- 2026-01-08 - Last updated in NVD database
Technical Details for CVE-2025-69360
Vulnerability Analysis
This DOM-Based XSS vulnerability stems from improper input sanitization within TheGem Theme Elements plugin. Unlike reflected or stored XSS, DOM-Based XSS occurs entirely on the client side, where malicious payloads are processed by JavaScript code that dynamically modifies the DOM without proper encoding or validation.
The vulnerability requires an authenticated user with low privileges to exploit, and successful exploitation depends on user interaction. When triggered, the attack can affect users across different sessions, enabling cross-scope impact where the malicious script can access data from other origins or perform actions on behalf of the victim.
The attack can compromise confidentiality, integrity, and availability of the affected WordPress site, allowing attackers to steal sensitive user data, modify page content, or disrupt site functionality.
Root Cause
The root cause of CVE-2025-69360 is improper neutralization of input during web page generation, classified as CWE-79 (Improper Neutralization of Input During Web Page Generation). The plugin fails to properly sanitize or encode user-supplied input before incorporating it into the DOM through client-side JavaScript, allowing attackers to inject executable script content.
Attack Vector
The vulnerability is exploitable over the network by authenticated users with low privilege levels. The attack requires user interaction, such as clicking a crafted link or visiting a malicious page. The attacker crafts a malicious payload that, when processed by the vulnerable JavaScript code in the plugin, executes arbitrary scripts in the victim's browser context.
The DOM-Based nature of this XSS means the payload is processed entirely client-side, making it potentially harder to detect through traditional server-side security controls. Attackers can leverage this vulnerability to perform actions such as session token theft, keylogging, phishing overlay injection, or redirecting users to malicious sites.
Detection Methods for CVE-2025-69360
Indicators of Compromise
- Unusual JavaScript execution patterns or DOM modifications on pages using TheGem Theme Elements
- Unexpected network requests from client browsers to unknown external domains
- User reports of suspicious behavior, pop-ups, or redirects on WordPress pages
- Browser console errors indicating script injection attempts
Detection Strategies
- Implement Content Security Policy (CSP) headers to detect and block inline script execution
- Monitor browser-side JavaScript execution through security tools that can identify DOM manipulation anomalies
- Review server access logs for requests containing suspicious encoded payloads targeting TheGem Theme Elements
- Deploy Web Application Firewalls (WAF) with XSS detection signatures
Monitoring Recommendations
- Enable detailed logging for WordPress plugin activities and user interactions
- Configure browser security headers including X-XSS-Protection and X-Content-Type-Options
- Implement real-time alerting for unusual client-side script behavior on pages utilizing WPBakery elements
- Regularly audit JavaScript resources loaded by the thegem-elements plugin for unexpected modifications
How to Mitigate CVE-2025-69360
Immediate Actions Required
- Update TheGem Theme Elements (for WPBakery) plugin to a version newer than 5.11.0 when available
- Audit user accounts with contributor-level or higher access for signs of compromise
- Implement strict Content Security Policy headers to limit script execution sources
- Consider temporarily disabling the thegem-elements plugin if a patched version is not yet available
Patch Information
Organizations should monitor the Patchstack Vulnerability Report for updates on available patches. Contact CodexThemes for the latest security updates addressing this vulnerability. Ensure all WordPress core, themes, and plugins are updated to their latest secure versions.
Workarounds
- Implement a Web Application Firewall (WAF) with XSS protection rules to filter malicious input
- Restrict plugin usage to trusted administrators only until a patch is available
- Add custom input validation and output encoding at the theme or server level
- Enable WordPress security plugins that provide real-time XSS protection
# Example: Adding Content Security Policy headers in Apache .htaccess
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;"
Header set X-XSS-Protection "1; mode=block"
Header set X-Content-Type-Options "nosniff"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

