# The Events Calendar <= 6.18.5 - Unauthenticated Arbitrary Shortcode Execution via Calendar Embed 'view_data' Parameter

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

## Description

The The Events Calendar plugin for WordPress is vulnerable to arbitrary shortcode execution via the Calendar Embeds page in all versions from 6.11.0 up to, and including, 6.18.5. This is due to the plugin rendering the embedded calendar view from a context that still reads request-supplied 'view_data' values, such as the search keyword, and printing that view HTML into the post content through a 'the_content' filter that runs before WordPress processes shortcodes, without neutralizing shortcode brackets. This makes it possible for unauthenticated attackers to execute arbitrary shortcodes registered on the site by visiting a published Calendar Embed page with a crafted request.

## References

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

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

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.
