Skip to main content
Vulnerability Database/CVE-2026-107649

CVE-2026-107649: Events Made Easy WordPress Plugin XSS

CVE-2026-107649 is a stored XSS vulnerability in the Events Made Easy WordPress plugin affecting versions up to 3.2.22. Attackers can inject malicious scripts through event submissions. This article covers technical details, requirements, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-107649 Overview

CVE-2026-107649 is a Stored Cross-Site Scripting (XSS) vulnerability in the Events Made Easy plugin for WordPress. The flaw affects all versions up to and including 3.2.22 and stems from insufficient input sanitization and output escaping on the event[location_name] parameter. Unauthenticated attackers can inject arbitrary web scripts that execute when a user accesses an injected page. Exploitation requires that a site administrator explicitly enable both the guest event submission feature (eme_fs[guest_submit]) and forced location creation (eme_fs[force_location_creation]), which default to off. The vulnerability is tracked under CWE-79.

Critical Impact

Unauthenticated attackers can store malicious JavaScript that executes in the browser of any visitor rendering an affected page, enabling session theft, redirects, and administrative action hijacking.

Affected Products

  • Events Made Easy plugin for WordPress — all versions up to and including 3.2.22
  • Fixed in version 3.2.23
  • Only exploitable when both eme_fs[guest_submit] and eme_fs[force_location_creation] are enabled

Discovery Timeline

  • 2026-10-16 - CVE-2026-107649 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-107649

Vulnerability Analysis

The plugin accepts the event[location_name] field from unauthenticated users through its guest event submission workflow. When forced location creation is enabled, the submitted location name is persisted and later rendered inside map popups and location pages. Input is not fully sanitized on entry, and output is not properly escaped on render.

The JavaScript renderer in js/eme_show_maps.js concatenates the stored location_balloon content directly into an HTML string before passing it to Leaflet's bindPopup. This treats attacker-controlled text as live markup, allowing injected <script> and event-handler payloads to execute in the viewer's browser session.

Root Cause

Two weaknesses combine to produce the issue. Server-side filtering in includes/eme-functions.php strips tags before decoding HTML entities, so an attacker can smuggle encoded tags like <img onerror=...> past wp_kses and have them reappear as live markup once the browser decodes them. Client-side, the map popup builder assembles balloon markup via string concatenation and renders it with bindPopup, bypassing safe DOM APIs.

Attack Vector

An unauthenticated attacker submits a guest event through the plugin's public form and places an XSS payload in the event[location_name] field. The payload is stored as a location record. When any visitor, including administrators, loads a page that renders the location map or balloon, the payload executes in their browser context under the site's origin.

php
// Patched sanitization in includes/eme-functions.php
         return $value;
     }
     $value = eme_strip_weird( $value );
+    // decode entities BEFORE stripping tags, so an attacker can't hide a tag as
+    // <img onerror=...> to sneak past wp_kses and reappear as live markup
+    // once the browser decodes it again on render
+    $value = html_entity_decode( $value, ENT_QUOTES, 'UTF-8' );
     // To filter out JS, we should use domdocument, but the problem is that sometimes the
     // html is intentional incomplete, which would cause issues with domdocument
     // See https://codereview.stackexchange.com/questions/30045/regex-to-remove-inline-javascript-from-string

Source: GitHub Commit 3d9e92f

Detection Methods for CVE-2026-107649

Indicators of Compromise

  • Location records containing HTML tags, <script> fragments, or encoded entities such as <img onerror= in the location_name or location_balloon fields.
  • Guest event submissions originating from unauthenticated sources immediately followed by new location entries.
  • Outbound requests from visitor browsers to attacker-controlled domains after loading event or map pages.

Detection Strategies

  • Query the WordPress database for eme_locations rows whose text fields contain <, >, onerror, onload, or javascript: substrings.
  • Review web server access logs for POST requests to the guest submission endpoint containing suspicious payloads in event[location_name].
  • Monitor browser Content Security Policy (CSP) violation reports for inline script execution on pages rendering event maps.

Monitoring Recommendations

  • Alert on new guest event submissions when eme_fs[guest_submit] and eme_fs[force_location_creation] are both enabled.
  • Track administrator session activity for anomalous actions following views of event or location pages.
  • Audit plugin version inventory across managed WordPress sites to flag installations below 3.2.23.

How to Mitigate CVE-2026-107649

Immediate Actions Required

  • Update the Events Made Easy plugin to version 3.2.23 or later on all WordPress sites.
  • If an immediate patch is not possible, disable the guest event submission feature (eme_fs[guest_submit]) or forced location creation (eme_fs[force_location_creation]) in plugin settings.
  • Audit existing location records for injected scripts and remove or sanitize any suspicious entries.

Patch Information

The vendor released the fix in version 3.2.23. The patch adds html_entity_decode before tag stripping in includes/eme-functions.php and refactors js/eme_show_maps.js to build popup content with createElement and setHTML instead of string concatenation. See the vendor changeset and the Wordfence advisory for additional details.

Workarounds

  • Disable eme_fs[guest_submit] to block unauthenticated event submissions entirely.
  • Disable eme_fs[force_location_creation] so submitted locations are not persisted automatically.
  • Deploy a strict Content Security Policy that blocks inline scripts and untrusted event handlers on pages rendering plugin output.
  • Place a Web Application Firewall (WAF) rule in front of the guest submission endpoint to block requests containing HTML tags in event[location_name].
bash
# Example WP-CLI command to check installed plugin version
wp plugin get events-made-easy --field=version

# Update the plugin to the patched release
wp plugin update events-made-easy --version=3.2.23

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.