# Simple Colorbox <= 1.6.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via data-cbox-* Attributes

- **ID:** WPSEC-2026-4174
- **Plugin:** Simple Colorbox (`simple-colorbox`), https://wordpress.org/plugins/simple-colorbox/
- **Affected versions:** from 1.6 before 1.6.2
- **Fixed in:** 1.6.2 (Update to 1.6.2 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-11-28)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/simple-colorbox
- **Fix released:** 2026-11-27
- **Published:** 2026-11-28
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4174/

## Description

The Simple Colorbox plugin for WordPress is vulnerable to Stored Cross-Site Scripting via per-element data-cbox-* attributes in all versions up to, and including, 1.6.1. The bundled Colorbox script reads setting overrides such as html, href, iframe, close and imgError from these attributes on links, and the values are passed to HTML sinks and the iframe source without sanitization. WordPress allows data-* attributes in post content, so authenticated attackers with contributor-level access and above can inject arbitrary web scripts that execute when a user opens the lightbox.

## References

- https://wpsec.com/vuln/WPSEC-2026-4174/
- https://plugins.svn.wordpress.org/simple-colorbox/tags/1.6.2/
- https://wordpress.org/plugins/simple-colorbox/

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

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.
