The Events Calendar <= 6.18.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Copied Events Widget Block Instance

Medium 6.4 CWE-79Fixed in 6.18.3.1
ID
WPSEC-2026-2671
Plugin
The Events Calendar (the-events-calendar)
Affected
from 6.11.2 before 6.18.3.1
Remediation
Update to 6.18.3.1 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin High · Affected versions High among sites WPSec scans, 2026-11-06
Attack surface
The Events Calendar on WPSec AttackSurface
Fix released
Published

Description

The The Events Calendar plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the instance of a copied Events widget (legacy widget block) in versions 6.11.2 up to, and including, 6.18.3. This is due to the plugin re-signing with wp_hash() any widget instance embedded in block content when it renders, without first passing it through the widget's own update() sanitization. As a result, unvalidated settings are passed to the widget view as template variables, and template attribute names, including event-handler attributes, are printed without being blocked. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON or Markdown · All advisories: JSON, RSS

License: CC BY 4.0