CVE-2025-60096
Executive Summary
CVE-2025-60096 is a Missing Authorization vulnerability in the TheGem (Elementor) WordPress theme by CodexThemes, affecting versions up to and including 5.10.5. This flaw allows an unauthenticated attacker to exploit incorrectly configured access control security levels, potentially leading to unauthorized data access or limited modification of site content. The vulnerability resides in the thegem-elementor component, which is part of the broader TheGem ecosystem for Elementor page builder.
As a WordPress ecosystem issue, this vulnerability does not stem from Apache or Nginx misconfigurations but from the theme's failure to properly enforce authorization checks on certain AJAX actions or REST endpoints. The CVSS score of 5.4 (Medium) reflects the low complexity and network-based attack vector, though the impact is limited to confidentiality and integrity at a low level.
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.
No signup required
Supply Chain & Package Security
This vulnerability affects a commercial WordPress theme distributed via ThemeForest and CodexThemes' own channels. No open-source package (NPM, PyPI, Go, Ruby) is involved. Users must rely on vendor patches or manual mitigation.
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) – No authentication needed.
- User Interaction (UI): None (N) – No user action required.
- Scope (S): Unchanged (U) – Vulnerability does not affect other components.
- Confidentiality (C): Low (L) – Limited data exposure.
- Integrity (I): Low (L) – Limited data modification possible.
- Availability (A): None (N) – No denial-of-service impact.
Threat Level: Medium. While the CVSS is moderate, the lack of authentication and public exploit potential (EPSS 0.0%) currently reduces immediate risk. However, unpatched installations remain vulnerable.
Deep Dive & Mechanics
The vulnerability lies in the thegem-elementor plugin's AJAX handlers or REST API endpoints that fail to verify user capabilities before processing requests. Specifically, the theme registers actions like wp_ajax_nopriv_* or rest_* callbacks that perform sensitive operations (e.g., retrieving post metadata, updating theme options) without checking current_user_can().
Root Cause: The theme uses add_action('wp_ajax_nopriv_thegem_action', ...) for actions that should require authentication, or omits permission_callback in REST routes. This allows any unauthenticated visitor to trigger the action.
Attack Vector: An attacker sends crafted HTTP requests to the WordPress site, targeting the vulnerable endpoint. For example:
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: target.com
Content-Type: application/x-www-form-urlencoded
action=thegem_export_settings&nonce=...
If the nonce check is missing or improperly implemented, the attacker can export sensitive theme settings or modify options.
Vulnerable vs. Patched Code
Vulnerable Code (<=5.10.5):
// In thegem-elementor/includes/class-ajax.php
add_action('wp_ajax_nopriv_thegem_export', 'thegem_export_callback');
function thegem_export_callback() {
// No capability check
$data = get_option('thegem_settings');
wp_send_json($data);
}
Patched Code (Hypothetical):
// Patched version
add_action('wp_ajax_thegem_export', 'thegem_export_callback');
function thegem_export_callback() {
if (!current_user_can('manage_options')) {
wp_die('Unauthorized', 403);
}
$data = get_option('thegem_settings');
wp_send_json($data);
}
The patch removes the nopriv_ prefix (which allows unauthenticated access) and adds a capability check.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- WordPress site with TheGem (Elementor) <= 5.10.5
- Network access to the target
Exploit Steps:
- Enumerate vulnerable endpoints using a tool like WPScan or manual inspection of theme files.
- Send a crafted request to
admin-ajax.phpwith the vulnerable action. - Extract sensitive data or modify settings.
Example cURL command:
curl -X POST https://target.com/wp-admin/admin-ajax.php \
-d "action=thegem_export_settings" \
-H "Content-Type: application/x-www-form-urlencoded"
Expected Output: JSON containing theme settings, API keys, or other sensitive data.
Blue Team (Detection & Hardening)
Detection:
- Monitor for unusual
admin-ajax.phprequests withnopriv_actions. - Look for requests to REST endpoints without proper authentication.
Hardening:
- Apply the vendor patch immediately when available.
- As a workaround, add a custom plugin to enforce capability checks:
add_action('init', function() {
remove_action('wp_ajax_nopriv_thegem_export', 'thegem_export_callback');
});
- Use a Web Application Firewall (WAF) to block requests to known vulnerable endpoints.
- Restrict access to
wp-adminvia IP whitelisting or VPN.
Indicators of Compromise (IOCs)
- Network IOCs:
- POST requests to
/wp-admin/admin-ajax.phpwithaction=thegem_*parameters. - Unusual JSON responses containing theme options or user data.
- POST requests to
- File IOCs:
- Modified
wp-content/themes/thegem-elementor/files. - Unexpected
thegem_settingsentries in the database.
- Modified
- Log IOCs:
admin-ajax.phprequests from unknown IPs without a valid nonce.- 200 responses to
nopriv_AJAX actions.
Detection Engineering
YARA Rule
rule CVE_2025_60096_TheGem_Missing_Auth {
meta:
description = "Detects vulnerable TheGem Elementor theme files with missing authorization"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-60096"
strings:
$nopriv = /add_action\s*\(\s*['\"]wp_ajax_nopriv_thegem_/
$no_cap = /function\s+thegem_\w+_callback\s*\(\)\s*\{[^}]*?(?!current_user_can)/
condition:
$nopriv or $no_cap
}
Sigma Rule
title: CVE-2025-60096 TheGem Missing Authorization Exploitation
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects exploitation attempts against TheGem Elementor theme missing authorization vulnerability
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
detection:
selection:
cs-method: 'POST'
c-uri: '/wp-admin/admin-ajax.php'
cs-uri-query|contains: 'action=thegem_'
condition: selection
falsepositives:
- Legitimate admin actions (rare)
level: high
Suricata Rule
alert http any any -> $HOME_NET any (
msg:"CVE-2025-60096 TheGem Missing Authorization Exploitation";
flow:to_server,established;
content:"POST"; http_method;
content:"/wp-admin/admin-ajax.php"; http_uri;
content:"action=thegem_"; http_client_body;
classtype:attempted-recon;
sid:1000001;
rev:1;
)
Remediation & Mitigation
- Immediate Action: Disable the
thegem-elementorplugin if not essential, or restrict access toadmin-ajax.phpvia.htaccess:<Files "admin-ajax.php"> Require all denied </Files> - Vendor Patch: Monitor CodexThemes for an update. Apply version >5.10.5 when released.
- Workaround: Add a custom mu-plugin to remove vulnerable hooks:
add_action('init', function() { remove_all_actions('wp_ajax_nopriv_thegem_export'); remove_all_actions('wp_ajax_nopriv_thegem_import'); }); - Long-term: Implement a Web Application Firewall (WAF) with virtual patching for CVE-2025-60096.
- Audit: Review all WordPress themes and plugins for similar missing authorization issues.
Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert
Report generated from CVE-2025-60096 analysis
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.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.