CVE Watch

WP Event Aggregator CVE-2026-141455: a security update that opened a hole

· 7 min read
A WordPress plugin update box with a security shield, split open by a giant square bracket, with shortcode brackets spilling out toward a server, beside an events calendar

If you run WP Event Aggregator, update to 1.9.6 now. CVE-2026-141455 lets anyone, with no login, make the plugin run any shortcode on your site and send back the result. Wordfence rates it 9.8 out of 10. The bug arrived in 1.9.5, a release whose changelog says it “strengthened” input sanitization. The code shows how that happened: the cleaning functions it switched to weren’t built for shortcodes.

At a glance

CVECVE-2026-141455
PluginWP Event Aggregator (wp-event-aggregator) by Xylus Themes, about 1,000 active installs on WordPress.org
TypeShortcode injection through a public AJAX action
SeverityCVSS 9.8 (Critical), no login or user interaction needed
Affected1.9.5 and earlier, according to the CVE record. The code suggests only 1.9.5 can be attacked this way (see below).
Fixed1.9.6, released December 2, 2026
Found byWordfence PRISM. Wordfence published its advisory on December 2. The CVE record followed on December 3.
StatusNo public reports of attacks had appeared as of December 4, 2026

What’s wrong

WP Event Aggregator imports events from Eventbrite, Meetup, Facebook and iCal feeds and shows them with the [wp_events] shortcode. When a visitor clicks to the next page of events, the browser sends the shortcode’s settings back to the site through a public AJAX action, wpea_load_paged_events. The plugin then rebuilds the shortcode as text and hands it to do_shortcode().

In 1.9.5, each setting is cleaned with sanitize_text_field() and put in quotes with esc_attr() before it goes into that text. Both functions do their own jobs well. sanitize_text_field() removes HTML tags and extra whitespace. esc_attr() makes a value safe inside an HTML attribute, so it turns quote marks into harmless codes. Neither one touches square brackets, and square brackets are what shortcodes are made of.

WordPress ends a shortcode at the first ] it finds, even inside quotes. So a setting that contains ] closes [wp_events] early, and anything after it is read as new shortcodes. Based on the CVE description and the plugin’s code (the attack wasn’t reproduced for this article), it works like this:

  1. The attacker opens any public page on the site and copies a nonce. The plugin prints this nonce into every page, for every visitor.
  2. They send a POST request to /wp-admin/admin-ajax.php with action=wpea_load_paged_events, that nonce, and a setting that contains ] followed by another shortcode.
  3. WordPress runs the attacker’s shortcode, and the plugin sends the output back in its reply.

The nonce is the only check, and it doesn’t stop anyone. A nonce shows that a request came from a page on your site. It doesn’t show who sent it, and here every visitor gets one.

How much damage that does depends on which shortcodes your site has. That part is an assessment, not something the advisory spells out. Most shortcodes are loaded during AJAX requests, so a stranger can run them with settings they choose. The one limit is that quote marks are still turned into codes, so the attacker’s settings can’t use quotes. Some plugins add shortcodes that run PHP, show private posts or reveal user data. On a site with one of those, this is as bad as the 9.8 score says. On a site with only WordPress’s built-in shortcodes, the harm is smaller.

Only 1.9.5 looks attackable

The CVE record says every version up to 1.9.5 is affected. The plugin’s own code tells a narrower story. This comes from comparing the code of versions 1.9.0 to 1.9.6 on WordPress.org. It isn’t a statement from Wordfence or the developer.

From 1.9.0 to 1.9.4, the same AJAX action had no nonce check at all. But it built the shortcode with PHP’s http_build_query(), which URL-encodes every value. A ] becomes %5D, so it can’t close the shortcode.

The 1.9.5 changelog lists “Strengthened AJAX nonce verification, admin capability checks, and input/SQL sanitization.” That release added the nonce, but it also replaced the encoding with sanitize_text_field() and esc_attr(), which let ] through. The 1.9.5 files are dated December 1, and 1.9.6 fixed the bug about a day later.

Whatever version you run, update to 1.9.6.

What an attack would look like

To spot an attack, you need logs that record what a request contains, not just its address. Ordinary access logs show a POST to /wp-admin/admin-ajax.php, but not which action it called or what it sent. A web application firewall, or a security plugin that logs request bodies, can show more. Look for:

  • Requests with action=wpea_load_paged_events
  • An atts value that contains ] or [, or the encoded forms %5D and %5B. A normal shortcode setting has no reason to contain brackets.
  • Many of these requests in a row, or from clients that never loaded a page

What to do

1. Update

Go to Plugins and update WP Event Aggregator to 1.9.6.

If you can’t update today, deactivate the plugin. Deactivating doesn’t delete your imported events, but pages that show events will display the raw shortcode until you turn the plugin back on.

2. Check whether you were exposed

By the reading above, a site was at risk only while it ran 1.9.5, which was out for about a day. The CVE record lists earlier versions too, so if you ran any version up to 1.9.5, check your firewall or security logs for the requests described above. If automatic updates are on for this plugin, confirm on Plugins that it’s already on 1.9.6. If you find matching requests, go to step 4.

3. Know what your shortcodes can do

This bug turned shortcodes into something anyone could run. If you have WP-CLI, list them with:

wp eval 'global $shortcode_tags; print_r( array_keys( $shortcode_tags ) );'

The list may miss shortcodes that a plugin registers only on certain pages. Look for shortcodes that run PHP, include files, or show content from private posts or user accounts. Remove any you don’t use. A shortcode that runs code is a risk with or without this bug.

4. If you see suspicious requests

Treat it like any other compromise. Look for new administrator accounts, unfamiliar plugins, files in wp-content/mu-plugins/, and changes to wp-config.php and .htaccess. Then change all administrator passwords, and restore from a clean backup if you find anything.

Where sources disagree

  • Affected versions. The CVE record says 1.9.5 and earlier. In 1.9.0 to 1.9.4, the code encodes the values that carry the attack, so the bug appears to start in 1.9.5. Update either way.
  • Remote code execution or shortcode execution. The CVE record, which Wordfence issued, calls it remote code execution. The title of Wordfence’s advisory says “Arbitrary Shortcode Execution”. Both fit. The plugin itself only runs shortcodes, and whether that leads to running code depends on the other plugins installed.

The bigger lesson

A WordPress sanitize or escape function only protects the format it was written for. sanitize_text_field() is for plain text. esc_attr() is for HTML attributes. esc_sql() is for SQL. None of them make text safe inside a shortcode, and WordPress core has no function made for that.

The fix in 1.9.6 doesn’t look for a better cleaner. It stops building shortcode text. The plugin now accepts only a fixed list of settings and passes them straight to its event list function. When input has to reach something WordPress will parse and run, pass it as data instead of pasting it into code.

The other lesson is about updates labeled “security”. 1.9.5 was meant to make the plugin safer and opened a hole instead. Updating is still right. But a plugin that rewrites its security code needs testing like any other change. That’s part of how a plugin earns its place on your site.

Update, December 4: two days later, two more plugins showed how much worse this kind of mistake can get. FireBox and Essential Widgets let a shortcode setting become a PHP function call, and a search box was enough to take over an admin account.

Sources