{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4586",
 "modified": "2026-12-04T08:47:51Z",
 "published": "2026-12-04T08:47:51Z",
 "summary": "BetterLinks <= 3.1.7 - Authenticated (Subscriber+) Stored Cross-Site Scripting via FluentBoards Short URL",
 "details": "The BetterLinks plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the short URL of FluentBoards task links in versions 2.1.9 up to, and including, 3.1.7. This is due to the FluentBoards link create and update AJAX handlers (betterlinks__create_fbs_link and betterlinks__update_fbs_link) storing the short URL after only sanitize_text_field(), without the plugin's usual short URL validation that forbids quotes, angle brackets and whitespace, combined with the plugin's the_content filter writing the short URL into the href attribute of BetterLinks linked-text anchors without output escaping. This makes it possible for authenticated attackers with subscriber-level access or higher who can manage a FluentBoards task, such as low-privileged board members, to inject arbitrary web scripts into pages that link to that short link, which will execute whenever a user accesses an affected page. Exploitation requires the FluentBoards plugin to be active and the attacker's short link to be referenced from post content.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "betterlinks"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "2.1.9"
      },
      {
       "fixed": "3.1.8"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 2.1.9 before 3.1.8"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4586/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/betterlinks/tags/3.1.8/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/betterlinks/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4586/",
  "cwe_ids": [
   "CWE-79"
  ],
  "vulnerability_type": "XSS",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
