Copy Anything to Clipboard <= 5.5.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'copy' Shortcode Attributes
- ID
- WPSEC-2026-1590
- Plugin
- Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code (copy-the-code)
- Affected
- from 5.0.0 before 5.5.5
- Remediation
- Update to 5.5.5 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 Medium · Affected versions Low among sites WPSec scans, 2026-10-25
- Attack surface
- Copy Anything to Clipboard on WPSec AttackSurface
- Fix released
- Published
Description
The Copy Anything to Clipboard plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the [copy] / [ctc] shortcode's 'success-text', 'copied-text' and 'button-text' attributes (and the [copy_inline] shortcode's 'tooltip' attribute) in all versions up to, and including, 5.5.4, due to insufficient input sanitization of HTML-entity-encoded markup and the front-end script writing these values into the page with innerHTML. 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 clicks the copy button on an injected page.
References
- https://wpsec.com/vuln/WPSEC-2026-1590/
- https://plugins.svn.wordpress.org/copy-the-code/tags/5.5.5/
- https://wordpress.org/plugins/copy-the-code/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON or Markdown · All advisories: JSON, RSS