# Visual Composer Website Builder <= 45.16.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via vcv_widgets Shortcode

- **ID:** WPSEC-2026-4404
- **Plugin:** Visual Composer Website Builder (`visualcomposer`), https://wordpress.org/plugins/visualcomposer/
- **Affected versions:** all versions before 45.16.6
- **Fixed in:** 45.16.6 (Update to 45.16.6 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 Medium (as of 2026-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/visualcomposer
- **Fix released:** 2026-12-01
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4404/

## Description

The Visual Composer Website Builder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the vcv_widgets shortcode in all versions up to, and including, 45.16.5, due to arbitrary widget wrapper arguments (such as before_widget) and instance values being rendered without sanitization, and the removal of the shortcode for users without the unfiltered_html capability running on content_save_pre before WordPress's own content filtering, which can rebuild the shortcode after the check. 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-4404/
- https://plugins.svn.wordpress.org/visualcomposer/tags/45.16.6/
- https://wordpress.org/plugins/visualcomposer/

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

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.
