# The Events Calendar <= 6.18.4.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Calendar View Tooltips

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

## Description

The The Events Calendar plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the calendar view tooltip scripts in all versions up to, and including, 6.18.4.1. This is due to the view scripts setting up any element marked as a calendar view container and turning any element marked as a tooltip trigger into a Tooltipster tooltip. Tooltipster passes the trigger's 'data-tooltip-content' attribute to jQuery, which parses an HTML string into live markup. This makes it possible for authenticated attackers with Contributor-level access and above to inject arbitrary web scripts, using data attributes in post or event content, that will execute whenever a user accesses an injected page.

## References

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

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

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.
