CVE-2026-78159
The Events Calendar <= 6.17.3 - Unauthenticated Code Injection to Remote Code Execution via Widget 'classes' Map Callable Invocation
Description
The The Events Calendar plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 6.17.3 via the parse_array function. This is due to insufficient validation of the widget 'classes' map, allowing a plain-array payload to bypass the is_safe_widget_instance() object check and reach the callable-invocation sink in Element_Classes::parse_array(). This makes it possible for unauthenticated attackers to execute code on the server. Exploitation requires that the targeted site has comments enabled on tribe_events posts and that at least one comment containing a crafted wp:legacy-widget block has been submitted, as the attack chain is triggered when do_blocks() processes the single-event HTML including the comment area.
In plain language
AI Act nowCVE-2026-78159 is a critical WordPress plugin flaw that can let an unauthenticated attacker run code on your server through event comments, but only if your site has comments enabled on event pages and a crafted widget-style comment is present—this is worth acting on if you run The Events Calendar.
Unauthenticated Remote Code Execution is possible in The Events Calendar (all versions up to and including 6.17.3) via a crafted `wp:legacy-widget` comment payload that reaches Element_Classes::parse_array(), bypassing safety checks for the widget `classes` map and invoking callable code.
What to do now
- Check whether your WordPress site uses “The Events Calendar” and note its exact plugin version.
- Verify comments are enabled for
tribe_eventsposts, and whether visitors can submit comments (including on single-event pages). - Search your database or WordPress comment storage for suspicious
wp:legacy-widgetblocks inside comments ontribe_eventsposts. - If you are on version 6.17.3 or earlier, update The Events Calendar to the fixed release your vendor provides (no fixed version was identified in the available patch findings).
- If you cannot patch immediately, restrict who can post comments on
tribe_eventspages (disable comments or require moderation) and remove any suspicious comments containingwp:legacy-widgetblocks.
CVSS Vector Breakdown
AV:NAttack VectorAC:LAttack ComplexityPR:NPrivileges RequiredUI:NUser InteractionS:UScopeC:HConfidentialityI:HIntegrityA:HAvailabilityWeaknesses
Affected Products
Exploitability
Attack Graph
Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/⌘ + scroll to zoom, or go fullscreen.
MITRE ATT&CK
2 techniquesReferences
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2026-78159 and every CVE in our database. Create a free account — no credit card required.
Create Free Account