CVE-2026-134942 — 10up ElasticPress (5.3.5) — CWE-352
Cross-Site Request Forgery (CSRF) vulnerability in 10up ElasticPress elasticpress allows Cross Site Request Forgery.This issue affects ElasticPress: from n/a through 5.3.5.
Cross-Site Request Forgery (CSRF) vulnerability in 10up ElasticPress elasticpress allows Cross Site Request Forgery.This issue affects ElasticPress: from n/a through 5.3.5.
🎯 What is this vulnerability?
CVE‑2026‑134942 is a Cross‑Site Request Forgery (CSRF) flaw in the WordPress plugin 10up ElasticPress (versions ≤ 5.3.5).
The plugin exposes several privileged administrative actions (e.g., re‑indexing, deleting indexes, updating settings) through the standard WordPress AJAX endpoint (/wp-admin/admin-ajax.php) and the REST API. In the affected releases the code that handles these actions does not validate a WordPress nonce or any other CSRF‑protecting token.
Because the actions are protected only by the fact that the user must be logged in, an attacker can trick any authenticated user (typically an administrator) into sending a request that triggers the action. The absence of a nonce check means the request is accepted without any further verification, giving the attacker full control over the vulnerable operation.
The flaw is therefore a classic CWE‑352 (Cross‑Site Request Forgery) with the following characteristics:
| CVSS 3.1 Element | Value | Interpretation |
|---|---|---|
| AV (Attack Vector) | N | Network‑only – the attacker only needs to send a crafted HTTP request. |
| AC (Attack Complexity) | L | Low – no special conditions are required. |
| PR (Privileges Required) | N | None – the attacker does not need any privileges beyond the victim’s logged‑in session. |
| UI (User Interaction) | R | Requires the victim to click a link or load a page (typical CSRF). |
| S (Scope) | U | Unchanged – the vulnerability does not affect other components. |
| C (Confidentiality) | H | Full – the attacker can read or modify data. |
| I (Integrity) | H | Full – the attacker can modify or delete data. |
| A (Availability) | H | Full – the attacker can cause denial of service by exhausting resources. |
Because the attacker can trigger any privileged action that the plugin exposes, the impact is Confidentiality + Integrity + Availability (C = H, I = H, A = H).
⚡ Attack Chain
Below is a realistic, step‑by‑step chain that an attacker could follow. The exact endpoint names and parameters are illustrative – the CVE description does not disclose them – but they reflect the typical pattern seen in earlier ElasticPress releases.
1. Discovery & Reconnaissance
| Step | Technique | What the attacker learns |
|---|---|---|
| 1.1 | Site fingerprinting | The attacker identifies that the target is a WordPress site and that the 10up/elasticpress plugin is installed (e.g., by scanning /wp-content/plugins/elasticpress/ or by inspecting the page source for ElasticPress‑specific scripts). |
| 1.2 | Version enumeration | The attacker queries /wp-content/plugins/elasticpress/readme.txt or uses a tool like WPScan to discover the plugin version (≤ 5.3.5). |
| 1.3 | Endpoint discovery | By browsing the site or using a spider, the attacker finds that the plugin registers AJAX actions such as elasticpress_reindex, elasticpress_delete_index, etc. |
Note: The exact action names are not published in the CVE; the examples below use the most common ones found in older releases.
2. Exploitation
| Step | Action | Example / Payload |
|---|---|---|
| 2.1 | Craft a CSRF request | The attacker creates a simple HTML page that contains an auto‑submitting form or an image tag that points to the vulnerable endpoint. |
| 2.2 | Deliver the page to a logged‑in administrator | The attacker may send a phishing email, host the page on a malicious site, or embed the link in a comment. |
| 2.3 | Trigger the request | When the admin visits the page, the browser automatically sends a POST/GET request to the plugin’s AJAX endpoint. |
Illustrative example (GET request via image tag):
<!-- Malicious page served to the victim -->
<img src="https://target.com/wp-admin/admin-ajax.php?action=elasticpress_reindex" style="display:none;">Illustrative example (auto‑submitting form):
<form id="csrf" action="https://target.com/wp-admin/admin-ajax.php" method="POST" style="display:none;">
<input type="hidden" name="action" value="elasticpress_delete_index">
</form>
<script>document.getElementById('csrf').submit();</script>Illustrative curl PoC (for testing in a lab):
curl -X POST \
-d "action=elasticpress_reindex" \
-b "wordpress_logged_in=YOUR_SESSION_COOKIE" \
https://target.com/wp-admin/admin-ajax.phpImportant: The above curl example assumes the attacker already has a valid session cookie. In a real CSRF scenario the victim’s browser automatically supplies the cookie.3. Post‑exploitation
| Step | Impact | Why it matters |
|---|---|---|
| 3.1 | Re‑indexing all content | Triggers a full re‑index of the WordPress database in Elasticsearch. This can consume CPU, memory, and network bandwidth, potentially causing a Denial‑of‑Service for search queries. |
| 3.2 | Deleting indexes | Removes the ElasticPress index, breaking all search functionality and causing loss of search‑related data. |
| 3.3 | Updating settings | The attacker can change configuration options (e.g., number of shards, index name) that may degrade performance or cause mis‑configuration. |
| 3.4 | Data exfiltration | By re‑indexing, the attacker can force the plugin to push data to a remote Elasticsearch cluster under their control (if the plugin is misconfigured to allow remote endpoints). |
| 3.5 | Privilege escalation | While the attacker does not gain direct code execution, repeated CSRF attacks can be combined with other vulnerabilities (e.g., XSS) to achieve higher privileges. |
Because the attacker can repeatedly trigger these actions, the cumulative effect can be service degradation, data loss, and potential exposure of sensitive content.
🌍 Real World Impact
| Impact | Explanation |
|---|---|
| Confidentiality (C = H) | The attacker can read or modify data stored in Elasticsearch (e.g., post content, metadata). |
| Integrity (I = H) | The attacker can delete or corrupt indexes, causing search results to be inaccurate or missing. |
| Availability (A = H) | Re‑indexing or deleting indexes can exhaust server resources, leading to a denial of service for search operations or even the entire WordPress site. |
| Practical Consequences | • Search functionality becomes unreliable or unavailable.<br>• Site performance degrades due to resource exhaustion.<br>• Administrators lose control over the search index.<br>• Potential data loss if indexes are deleted without backup. |
🛡️ Remediation & Mitigation
1. Exact Affected Versions
| Product | Affected Versions |
|---|---|
| 10up ElasticPress | ≤ 5.3.5 |
Upgrade Recommendation: Install ElasticPress 5.3.6 or later. The patch adds nonce verification to all privileged AJAX and REST actions.
2. Workarounds
| Technique | How to Apply |
|---|---|
| Restrict AJAX access | Add the following rule to your web server configuration (Apache/NGINX) to block requests to admin-ajax.php that do not contain a valid WordPress nonce (_wpnonce) or the X-WP-Nonce header. |
| Apache | ```<LocationMatch "^/wp-admin/admin-ajax\.php$">
SetEnvIf Request_URI "\?action=elasticpress_" no_csrf
Order Allow,Deny
Allow from all
Deny from env=no_csrf
</LocationMatch>``` |
| NGINX | ```location = /wp-admin/admin-ajax.php {
if ($arg_action ~* ^elasticpress_) {
if ($http_x_wp_nonce = "") {
return 403;
}
}
}``` |
| WAF / ModSecurity | ```SecRule REQUEST_URI "@beginsWith /wp-admin/admin-ajax.php" \
"chain,phase:2,block,msg:'ElasticPress CSRF protection',id:100001"
SecRule REQUEST_URI "@rx action=elasticpress_" \
"chain"
SecRule REQUEST_HEADERS:X-WP-Nonce "@rx ^[a-z0-9]{32}$" \
"t:none,allow"``` |
| Disable the plugin | If the site does not rely on ElasticPress, simply deactivate the plugin (wp deactivate elasticpress/elasticpress.php). |
Note: The above rules are illustrative. Adjust the regexes to match the exact action names used by your installation.
3. Detection
| Log Pattern | What to Look For |
|---|---|
**Repeated POST/GET to admin-ajax.php with action=elasticpress_* | Indicates potential CSRF attempts. |
Missing _wpnonce or X-WP-Nonce header | Validates that the request is not protected. |
| High frequency of re‑index or delete actions** | May signal a DoS or data‑loss attempt. |
Sample Apache log entry:
127.0.0.1 - admin [12/Nov/2026:10:15:42 +0000] "POST /wp-admin/admin-ajax.php?action=elasticpress_reindex HTTP/1.1" 200 1234Sample ModSecurity alert:
```
[ModSecurity] 2026-11-12T10:15:42.123Z [client 127.0.0.1] ModSecurity: Warning. Pattern match risk: 9.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0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