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.







