{
 "id": "WPSEC-2026-3871",
 "url": "https://wpsec.com/vuln/WPSEC-2026-3871/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-3871/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-3871/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-3871.json",
 "title": "YITH WooCommerce Wishlist <= 4.21.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via prettyPhoto Popup Link Attributes",
 "description": "The YITH WooCommerce Wishlist plugin for WordPress is vulnerable to Stored Cross-Site Scripting via prettyPhoto popup links in all versions up to, and including, 4.21.0. This is due to the wishlist script starting prettyPhoto on any anchor on the page whose 'data-rel' value is prettyPhoto[ask_an_estimate] or prettyPhoto[create_wishlist], not only on links the plugin generated. prettyPhoto then writes the alt text of an image inside the link, and the link's title attribute, into the page as HTML without sanitization. This makes it possible for authenticated attackers with Contributor-level access and above to inject arbitrary web scripts into pages that load the wishlist script. The scripts run when a user clicks the injected link.",
 "plugin": {
  "slug": "yith-woocommerce-wishlist",
  "name": "YITH WooCommerce Wishlist",
  "full_name": "YITH WooCommerce Wishlist",
  "wordpress_org": "https://wordpress.org/plugins/yith-woocommerce-wishlist/",
  "advisories_url": "https://wpsec.com/vuln/plugin/yith-woocommerce-wishlist/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/yith-woocommerce-wishlist"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 5.4,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "4.21.1",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 4.21.1"
  ]
 },
 "introduced_in": null,
 "fixed_in": "4.21.1",
 "remediation": "Update to 4.21.1 or later.",
 "fix_released": "2026-11-24T10:29:13+00:00",
 "published": "2026-11-25T10:55:27+00:00",
 "updated": "2026-11-25T09:50:53.910271+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-3871/",
  "https://plugins.svn.wordpress.org/yith-woocommerce-wishlist/tags/4.21.1/",
  "https://wordpress.org/plugins/yith-woocommerce-wishlist/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/yith-woocommerce-wishlist",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "High",
  "affected_versions": "High",
  "as_of": "2026-11-25"
 }
}