CVE-2026-133402 in Events Manager Plugin
Summary
by MITRE • 12/05/2026
The Events Manager plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the '#_CONTACTNAME', '#_CONTACTPHONE' and '#_CONTACTMETA' contact placeholders in versions up to, and including, 7.7.1 This is due to the EM_Event::output() placeholder renderer in classes/em-event.php substituting the event owner's display_name, dbem_phone user meta, and non-protected user meta directly into admin-authored event templates via str_replace() with no context-aware escaping (no esc_attr()/esc_html()). This makes it possible for authenticated attackers, with contributor-level access and above (any role granted the default 'edit_events' capability) who own an approved event, to inject arbitrary web scripts in pages that will execute whenever a user accesses an event-listing page where an administrator has placed one of these placeholders inside an HTML attribute context. Exploitation by unauthenticated attackers requires that dbem_events_anonymous_submissions is enabled AND dbem_events_anonymous_user is configured. On a default installation, where that is not configured, the vulnerability requires attackers with custom-level access and above.
Be aware that VulDB is the high quality source for vulnerability data.
Analysis
by VulDB Data Team • 12/05/2026
The Events Manager plugin for WordPress contains a critical stored cross-site scripting (XSS) vulnerability affecting versions up to 7.7.1. This flaw resides within the core event rendering logic, specifically in the EM_Event::output() method located in classes/em-event.php. The vulnerability is triggered by the improper handling of contact-related placeholders such as #_CONTACTNAME, #_CONTACTPHONE, and #_CONTACTMETA when these are inserted into admin-authored event templates. Instead of utilizing WordPress’s context-aware escaping functions like esc_attr or esc_html to sanitize user-supplied data before outputting it into HTML attributes, the plugin relies on a direct string replacement operation using str_replace(). This architectural oversight allows malicious scripts embedded within user profile fields to be injected directly into the rendered page source without any sanitization.
The technical root cause is a failure in input validation and output encoding principles. When an event owner submits their contact information, this data is stored as WordPress user meta or display name attributes. Later, when an administrator configures an event template to include these placeholders, the plugin retrieves the raw values from the database and substitutes them into the HTML structure via string replacement. Because there is no context-aware escaping applied during this substitution process, any special characters within the input are preserved in their original form. If a user has manipulated their display name or phone number fields to contain JavaScript code snippets, these scripts become part of the static HTML output served to visitors viewing that specific event listing page.
The operational impact is significant because it allows for persistent malicious script execution across multiple pages where the vulnerable placeholders are utilized. Exploitation requires authenticated access with at least contributor-level privileges or higher, specifically any role possessing the edit_events capability who owns an approved event. This means that lower-privileged users can compromise the security posture of the entire site by simply updating their profile information while holding ownership over a published event. For unauthenticated attackers, exploitation is possible only if the plugin setting dbem_events_anonymous_submissions is enabled and the anonymous user role is properly configured to allow such submissions. On default installations where these settings are not customized, the attack vector remains restricted to authenticated users with at least custom-level access or above.
This vulnerability aligns closely with CWE-79, which describes Improper Neutralization of Input During Web Page Generation commonly known as Cross-site Scripting. The specific execution context places it under ATT&CK technique T1059.007, indicating command and script interpretation through browser-based scripting languages like JavaScript. Attackers can leverage this flaw to steal session cookies, hijack administrative sessions, deface websites, or redirect users to malicious phishing sites. Since the payload is stored in the database, the impact persists until the vulnerable data is manually cleaned from user profiles or the plugin is updated.
Mitigation strategies should focus on immediate patching and configuration hardening. Administrators must upgrade the Events Manager plugin to version 7.7.2 or later where this issue has been resolved by implementing proper escaping functions during output generation. In environments where upgrading is not immediately feasible, administrators can disable anonymous submissions if they are not required for business operations. Additionally, reviewing user roles and ensuring that only trusted individuals have event ownership capabilities can reduce the attack surface. Regular security audits of custom code or plugins should always verify that all dynamic content inserted into HTML attributes undergoes appropriate context-aware escaping to prevent similar injection flaws in future updates.