{
 "id": "WPSEC-2026-4701",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4701/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4701/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4701/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4701.json",
 "title": "Comments – wpDiscuz <= 7.7.0 - Unauthenticated Stored Cross-Site Scripting via Comment Span ID",
 "description": "The wpDiscuz plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the id attribute of span elements in comment content in all versions up to, and including, 7.7.0, due to the comment HTML allow-list accepting id (and contenteditable) on spans and the front-end script not validating the comment id it reads from the markup. The reply handler reads the id of the closest .wpd-comment element and puts it unescaped into the reply form template it inserts into the page. This makes it possible for unauthenticated attackers, where guest commenting is allowed, to inject arbitrary web scripts that execute when a user interacts with the crafted comment.",
 "plugin": {
  "slug": "wpdiscuz",
  "name": "Comments – wpDiscuz",
  "full_name": "Comments – wpDiscuz",
  "wordpress_org": "https://wordpress.org/plugins/wpdiscuz/",
  "advisories_url": "https://wpsec.com/vuln/plugin/wpdiscuz/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/wpdiscuz"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.1,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "7.8.0",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 7.8.0"
  ]
 },
 "introduced_in": null,
 "fixed_in": "7.8.0",
 "remediation": "Update to 7.8.0 or later.",
 "fix_released": "2026-12-04T15:55:51+00:00",
 "published": "2026-12-05T16:41:40+00:00",
 "updated": "2026-12-05T10:46:44.792060+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4701/",
  "https://plugins.svn.wordpress.org/wpdiscuz/tags/7.8.0/",
  "https://wordpress.org/plugins/wpdiscuz/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/wpdiscuz",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-12-05"
 }
}