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

CVE-2025-60097

CVE-2025-60097 Missing Authorization in Codexthemes
📅 PUBLISHED: 2025-09-26 09:15 UTC 🔄 UPDATED: 2026-08-12 14:52 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.06%
👁️
0.06% probability
1.4× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
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 5.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: U Scope Unchanged
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
5.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-60097 is a Missing Authorization vulnerability in the TheGem WordPress theme by CodexThemes, affecting versions from n/a through 5.10.5. This flaw allows an authenticated attacker (with low privileges) to exploit incorrectly configured access control security levels, potentially leading to unauthorized data access or modification. The vulnerability is classified as Medium Severity (CVSS 5.4) and currently has no known public exploit or patch. As a WordPress ecosystem issue, this affects sites running the TheGem theme and requires immediate attention to mitigate risk.

⚡ 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 commercial WordPress theme distributed via ThemeForest and the CodexThemes ecosystem. Since it is not an open-source package (NPM, PyPI, Go, Ruby), supply chain risks are limited to direct theme installations. However, users should verify the integrity of their theme files and monitor for official patches from CodexThemes.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): Low (L) – Attacker needs a valid user account (e.g., subscriber).
  • User Interaction (UI): None (N) – No victim action needed.
  • Scope (S): Unchanged (U) – Impact confined to the vulnerable component.
  • Confidentiality (C): Low (L) – Limited data exposure.
  • Integrity (I): Low (L) – Limited data modification.
  • Availability (A): None (N) – No denial of service.

Threat Level: Medium. While the CVSS score is moderate, the lack of a patch and the widespread use of TheGem in WordPress sites elevates the risk for unpatched installations.

Deep Dive & Mechanics

The vulnerability stems from Missing Authorization (CWE-862) in the TheGem theme’s access control mechanisms. Specifically, the theme fails to properly validate user capabilities when processing certain AJAX actions or REST API endpoints. An authenticated attacker with low privileges (e.g., subscriber) can send crafted requests to perform actions that should require higher privileges (e.g., editor or administrator).

Root Cause: The theme’s code likely uses current_user_can() incorrectly or omits capability checks in functions that handle sensitive operations like theme options, custom post types, or user meta updates.

Attack Vector: The attacker sends a specially crafted HTTP request (e.g., POST to /wp-admin/admin-ajax.php with action thegem_save_options) that bypasses authorization checks.

Impact: Successful exploitation allows the attacker to:

  • Modify theme settings (e.g., inject malicious JavaScript).
  • Access or modify private posts/pages.
  • Escalate privileges if combined with other vulnerabilities.

Vulnerable vs. Patched Code

Since no patch is available, we can only analyze the vulnerable pattern. The following is a hypothetical example of the vulnerable code and its secure counterpart.

Vulnerable Code (TheGem <= 5.10.5):

add_action('wp_ajax_thegem_save_options', 'thegem_save_options_callback');
function thegem_save_options_callback() {
    // Missing capability check
    $options = $_POST['options'];
    update_option('thegem_theme_options', $options);
    wp_die();
}

Patched Code (Hypothetical):

add_action('wp_ajax_thegem_save_options', 'thegem_save_options_callback');
function thegem_save_options_callback() {
    // Added capability check
    if (!current_user_can('manage_options')) {
        wp_die('Unauthorized', 403);
    }
    $options = $_POST['options'];
    update_option('thegem_theme_options', $options);
    wp_die();
}

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • A WordPress site running TheGem <= 5.10.5.
  • A valid low-privilege user account (e.g., subscriber).

Exploitation Steps:

  1. Log in as the low-privilege user.
  2. Craft a POST request to /wp-admin/admin-ajax.php with the following parameters:
    • action: thegem_save_options (or similar vulnerable action)
    • options: {"malicious_option": "value"}
  3. Send the request using a tool like curl:
    curl -X POST http://target.com/wp-admin/admin-ajax.php \
      -c cookies.txt -b cookies.txt \
      -d "action=thegem_save_options&options[malicious]=true"
    
  4. Verify the unauthorized change by checking the theme options.

Note: No public exploit code is available; this is a conceptual demonstration.

Blue Team (Detection & Hardening)

Detection:

  • Monitor admin-ajax.php requests for unusual actions (e.g., thegem_save_options) from low-privilege users.
  • Look for HTTP 200 responses to unauthorized AJAX calls.

Hardening:

  • Apply the principle of least privilege to all user roles.
  • Use a Web Application Firewall (WAF) to block suspicious AJAX requests.
  • Temporarily disable the TheGem theme if no patch is available and switch to a default WordPress theme.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • POST requests to /wp-admin/admin-ajax.php with action parameter containing thegem_ prefix from non-admin users.
    • Unusual options payloads in POST data.
  • File IOCs:
    • Modified wp-content/themes/thegem/ files (check file integrity).
    • New entries in wp_options table with thegem_ prefix.
  • Log IOCs:
    • WordPress debug log entries showing capability errors.
    • Web server access logs with 200 responses to admin-ajax.php from low-privilege users.

Detection Engineering

YARA Rule

rule CVE_2025_60097_TheGem_Missing_Auth {
    meta:
        description = "Detects TheGem theme files with missing authorization checks"
        author = "Valters IT"
        date = "2025-04-01"
        reference = "CVE-2025-60097"
    strings:
        $vuln_func = "add_action('wp_ajax_thegem_" nocase
        $missing_check = "current_user_can" nocase
    condition:
        $vuln_func and not $missing_check
}

Sigma Rule

title: CVE-2025-60097 - TheGem Missing Authorization AJAX Request
id: 8a4b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects unauthorized AJAX requests to TheGem theme actions
author: Valters IT
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: '/wp-admin/admin-ajax.php'
        cs-uri-query|contains|all:
            - 'action=thegem_'
            - 'options='
    condition: selection
falsepositives:
    - Legitimate admin actions
level: medium

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (
    msg:"CVE-2025-60097 - TheGem Missing Authorization AJAX Request";
    flow:to_server,established;
    content:"POST"; http_method;
    content:"/wp-admin/admin-ajax.php"; http_uri;
    content:"action=thegem_"; http_client_body;
    content:"options="; http_client_body;
    sid:1000001;
    rev:1;
    reference:cve,2025-60097;
)

Remediation & Mitigation

Immediate Actions:

  1. Disable the TheGem theme and switch to a default WordPress theme (e.g., Twenty Twenty-Four) until a patch is released.
  2. Restrict user roles – Ensure only trusted administrators have access to the site.
  3. Monitor logs for suspicious AJAX activity.

Long-term Fix:

  • Apply the official patch from CodexThemes once released.
  • Implement a Web Application Firewall (WAF) rule to block unauthorized AJAX actions.
  • Conduct a security audit of all WordPress themes and plugins.

Workaround:

  • Add a custom capability check via a child theme or mu-plugin:
    add_action('init', function() {
        if (current_user_can('manage_options')) {
            // Allow TheGem AJAX actions
        } else {
            // Block all TheGem AJAX actions
            add_filter('pre_http_request', function($pre, $r, $url) {
                if (strpos($url, 'admin-ajax.php') !== false && strpos($r['body'], 'thegem_') !== false) {
                    return new WP_Error('blocked', 'Unauthorized');
                }
                return $pre;
            }, 10, 3);
        }
    });
    

Valters IT
Securing Digital Frontiers

👁️ 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"
http.html:"wp-content/themes/thegem"

💣 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-60097/ · 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.