What’s Vulnerable › Vulnerabilities
CVE-2023-5086: Copy Anything to Clipboard <= 2.6.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-10-20 · updated 2026-06-17
- Weakness: CWE-79
Description
The Copy Anything to Clipboard plugin for WordPress is vulnerable to Stored Cross-Site Scripting via 'copy' shortcode in versions up to, and including, 2.6.4 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers with contributor-level and above permissions to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Affected products
- clipboardagency Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code: before 2.6.5 — fixed in 2.6.5
How to fix
Upgrade to a fixed version: clipboardagency Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code 2.6.5. Check the vendor advisory for mitigations.
References
- https://plugins.trac.wordpress.org/browser/copy-the-code/tags/2.6.4/classes/class-copy-the-code-shortcode.php#L83
- https://plugins.trac.wordpress.org/changeset/2969441/copy-the-code#file1
- https://www.wordfence.com/threat-intel/vulnerabilities/id/e834a211-ccc8-4a30-a15d-879ba34184e9?source=cve
- https://plugins.trac.wordpress.org/browser/copy-the-code/tags/2.6.4/classes/class-copy-the-code-shortcode.php#L83
- https://plugins.trac.wordpress.org/changeset/2969441/copy-the-code#file1
- https://www.wordfence.com/threat-intel/vulnerabilities/id/e834a211-ccc8-4a30-a15d-879ba34184e9?source=cve
Get alerted when CVE-2023-5086 or the next vulnerability affects your stack