{
 "id": "WPSEC-2026-1590",
 "url": "https://wpsec.com/vuln/WPSEC-2026-1590/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-1590/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-1590/index.md",
 "title": "Copy Anything to Clipboard <= 5.5.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'copy' Shortcode Attributes",
 "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.",
 "plugin": {
  "slug": "copy-the-code",
  "name": "Copy Anything to Clipboard",
  "full_name": "Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code",
  "wordpress_org": "https://wordpress.org/plugins/copy-the-code/",
  "advisories_url": "https://wpsec.com/vuln/plugin/copy-the-code/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/copy-the-code"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.4,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "5.0.0",
    "from_inclusive": true,
    "to": "5.5.5",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 5.0.0 before 5.5.5"
  ]
 },
 "introduced_in": "5.0.0",
 "fixed_in": "5.5.5",
 "remediation": "Update to 5.5.5 or later.",
 "fix_released": "2026-10-23T09:28:21+00:00",
 "published": "2026-10-24T11:42:24+00:00",
 "updated": "2026-10-24T10:52:36.572860+00:00",
 "also_published_as": null,
 "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/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/copy-the-code",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Medium",
  "affected_versions": "Low",
  "as_of": "2026-10-25"
 }
}