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)
- Affected
- from 6.11.0 before 6.18.5.1
- Remediation
- Update to 6.18.5.1 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- Weakness
- CWE-94
- Usage
- Plugin High · Affected versions High among sites WPSec scans, 2026-12-04
- Attack surface
- The Events Calendar on WPSec AttackSurface
- Fix released
- Published
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/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS