# Google Calendar Events <= 4.3.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Google Calendar ID Setting

- **ID:** WPSEC-2026-3277
- **Plugin:** Simple Calendar – Google Calendar, Events, & ICS Feeds (`google-calendar-events`), https://wordpress.org/plugins/google-calendar-events/
- **Affected versions:** from 4.0.6 before 4.3.3
- **Fixed in:** 4.3.3 (Update to 4.3.3 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 Medium, affected versions Low (as of 2026-11-17)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/google-calendar-events
- **Fix released:** 2026-11-16
- **Published:** 2026-11-17
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3277/

## Description

The Google Calendar, Events, & ICS Feeds plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the calendar's 'Calendar ID' setting in all versions up to, and including, 4.3.2. This is due to insufficient input sanitization and output escaping: the Google Calendar ID is saved with sanitize_text_field(), which keeps quotes, and the settings field decodes it with a custom callback that replaces the plugin's default attribute escaping before it is printed into the input's value attribute. This makes it possible for authenticated attackers with contributor-level access and above, who can create and edit calendars, to inject arbitrary web scripts that execute when another user, such as an administrator, opens the calendar's edit screen.

## References

- https://wpsec.com/vuln/WPSEC-2026-3277/
- https://plugins.svn.wordpress.org/google-calendar-events/tags/4.3.3/
- https://wordpress.org/plugins/google-calendar-events/

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

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.
