# The Events Calendar <= 6.18.4 - Unauthenticated Arbitrary Shortcode Execution via Single Event Block

- **ID:** WPSEC-2026-3576
- **Plugin:** The Events Calendar (`the-events-calendar`), https://wordpress.org/plugins/the-events-calendar/
- **Affected versions:** from 6.2.7 before 6.18.4.1
- **Fixed in:** 6.18.4.1 (Update to 6.18.4.1 or later.)
- **Severity:** High 7.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)
- **Weakness:** CWE-94
- **Usage among sites WPSec scans:** plugin High, affected versions High (as of 2026-11-20)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/the-events-calendar
- **Fix released:** 2026-11-19
- **Published:** 2026-11-20
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3576/

## Description

The The Events Calendar plugin for WordPress is vulnerable to arbitrary shortcode execution via the Single Event block in all versions from 6.2.7 up to, and including, 6.18.4. This is due to the block returning full calendar view HTML, which contains request-supplied values such as the search keyword, without neutralizing shortcodes, so when the block is placed in post content the shortcodes are executed by the later do_shortcode() pass of the_content. This makes it possible for unauthenticated attackers to execute arbitrary shortcodes on pages where the Single Event block is rendered in post content.

## References

- https://wpsec.com/vuln/WPSEC-2026-3576/
- https://plugins.svn.wordpress.org/the-events-calendar/tags/6.18.4.1/
- https://wordpress.org/plugins/the-events-calendar/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3576/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
