# Import Social Events <= 1.9.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via facebook_events Shortcode Attributes

- **ID:** WPSEC-2026-4676
- **Plugin:** Import Social Events (`import-facebook-events`), https://wordpress.org/plugins/import-facebook-events/
- **Affected versions:** from 1.8.8 before 1.9.3
- **Fixed in:** 1.9.3 (Update to 1.9.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 Low, affected versions Low (as of 2026-12-05)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/import-facebook-events
- **Fix released:** 2026-12-04
- **Published:** 2026-12-05
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4676/

## Description

The Import Social Events plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'facebook_events' shortcode in all versions up to, and including, 1.9.2, due to the shortcode attributes, including arbitrary unrecognised ones, being JSON-encoded without HTML escaping into a single-quoted data-shortcode attribute. 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

- https://wpsec.com/vuln/WPSEC-2026-4676/
- https://plugins.svn.wordpress.org/import-facebook-events/tags/1.9.3/
- https://wordpress.org/plugins/import-facebook-events/

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

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.
