CVE-2026-86787: Affiliate Toolkit 3.8.7 - 3.9.0 - Contributor+ RCE via BladeOne @php Directive
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.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
Any authenticated WordPress user with the Contributor role or a higher-privileged role can exploit it, provided they can supply a template body processed by the plugin's bundled templating engine.
What access does exploitation give an attacker?
Successful exploitation allows the attacker to execute arbitrary PHP code on the WordPress server. This is server-side remote code execution.
Which versions are affected?
Affiliate Toolkit versions 3.8.7 through 3.9.0 are affected. Versions before 3.9.1 do not prevent the unsafe template content from being compiled and executed as PHP.