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.
Published: 2026-09-12
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

The vulnerability allows an attacker to inject malicious code into the WordPress server by exploiting insufficient validation of the widget 'classes' map within The Events Calendar plugin. An unauthenticated user can place a specially crafted array in a comment that bypasses the is_safe_widget_instance() check and reaches the callable-invocation sink in Element_Classes::parse_array(), resulting in arbitrary code execution on the server.

Affected Systems

The affected product is The Events Calendar for WordPress, supplied by stellarwp. All versions up to and including 6.17.3 are vulnerable; any WordPress site running these versions must be considered at risk.

Risk and Exploitability

The CVSS score of 9.8 indicates a critical severity, yet the EPSS score of less than 1% suggests that exploitation has not been observed at the time of analysis. The exploit requires that the site has tribe_events posts with comments enabled and that a comment contains a crafted wp:legacy-widget block; after do_blocks() processes the single-event HTML, the malicious payload is executed. Although the vulnerability is not currently listed in CISA’s KEV catalog, the potential impact warrants immediate attention.

Generated by OpenCVE AI on September 12, 2026 at 15:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update The Events Calendar plugin to version 6.17.4 or later to apply the vendor’s fix
  • If an update cannot be applied immediately, temporarily disable comments or comment content for tribe_events posts to break the exploitation chain
  • Remove any existing comments that contain the crafted wp:legacy-widget block and audit the site for similar payloads

Generated by OpenCVE AI on September 12, 2026 at 15:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 12 Sep 2026 07:45:00 +0000

Type Values Removed Values Added
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.
Title The Events Calendar <= 6.17.3 - Unauthenticated Code Injection to Remote Code Execution via Widget 'classes' Map Callable Invocation
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-09-12T07:39:15.542Z

Reserved: 2026-08-23T11:39:39.155Z

Link: CVE-2026-78159

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-12T08:16:24.377

Modified: 2026-09-12T08:16:24.377

Link: CVE-2026-78159

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-12T16:00:14Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')