CVE-2026-86787: affiliate-toolkit remote code execution vulnerability
high 7.2 published 2026-10-14
- Affected versions
- 3.8.7 up to (not including) 3.9.1
- Fixed in
- 3.9.1
- Latest version
- 3.9.3
- Severity
- High · CVSS 7.2
- Active installs
- 2,000+
- Type
- Remote code execution
What an attacker needs
- Access: An admin-level account (per the CVSS score).
CVSS vector (score by CISA ADP): CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
What to do now
- Update affiliate-toolkit to 3.9.1 or newer (the latest is 3.9.3): Dashboard → Updates, or Plugins → “update now”.
- If you cannot update right away, deactivate it until you can.
- Turn on auto-updates for it: Plugins → “Enable auto-updates” on its row.
- Not sure which version you run? Check your version against every known affiliate-toolkit issue.
With WP-CLI:
wp plugin get affiliate-toolkit-starter --field=version. - If you ran an affected version and something looks off (new admin users, spam pages, redirects), run the free scan below.
The advisory
The affiliate-toolkit WordPress plugin before 3.9.1 does not prevent a low-privileged user from supplying a template body that its bundled templating engine compiles and executes as PHP, allowing users with the Contributor role or above to run arbitrary PHP code on the server.
References
- NVD CVE-2026-86787 nvd.nist.gov
- WPScan advisory wpscan.com
Related
Ran an affected version? Check your site for signs of a hack
The free scan reads the public side of your site and looks for spam pages, hidden redirects, injected scripts and blacklist entries. No login, no install, about a minute.
Where this data comes from
- CVE record, score and references: NIST National Vulnerability Database (NVD), checked 2026-11-04. This product uses data from the NVD API but is not endorsed or certified by the NVD.
- Versions and install counts: wordpress.org/plugins/affiliate-toolkit-starter (Plugins API), fetched 2026-11-04.
- The summary, “what an attacker needs” and “what to do” sections are our plain-English reading of the record and the plugin's release history; the quoted description is the record's own text. Spot an error? Email Daniel.