Vulnerability in BetterLinks – Link Shortener, Link Cloaking, Redirects, Affiliate Link Manager & MCP — CVE-2026-137045
What to do now
Update BetterLinks – Link Shortener, Link Cloaking, Redirects, Affiliate Link Manager & MCP to 3.1.8 or later.
Affected versions
- Everything up to and including 3.1.7
Affected: BetterLinks – Link Shortener, Link Cloaking, Redirects, Affiliate Link Manager & MCP (plugin, betterlinks)
What the vulnerability is
The BetterLinks – Link Shortener, Link Cloaking, Redirects, Affiliate Link Manager & MCP plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'short_url' parameter in all versions up to, and including, 3.1.7 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires the attacker's Subscriber-level account to have been added as a member of a FluentBoards board, granting access to the board's admin screen where the required nonce is exposed.
Sources
- https://plugins.trac.wordpress.org/browser/betterlinks/tags/3.1.7/includes/Admin/Ajax.php#L258
- https://plugins.trac.wordpress.org/browser/betterlinks/tags/3.1.7/includes/Admin/Ajax.php#L351
- https://plugins.trac.wordpress.org/browser/betterlinks/tags/3.1.7/includes/Frontend/LinkChecker.php#L42
- https://plugins.trac.wordpress.org/browser/betterlinks/tags/3.1.7/includes/Frontend/LinkChecker.php#L68
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3841909%40betterlinks&new=3841909%40betterlinks
- https://www.wordfence.com/threat-intel/vulnerabilities/id/6155dc91-401f-4326-8db5-83ef937d0ca1?source=cve