CVE-2026-86787 Affiliate Toolkit 3.8.7 - 3.9.0 - Contributor+ RCE via BladeOne @php Directive

High 7.2 Published Updated

Low-privileged users can execute arbitrary PHP code via the templating engine, requiring an upgrade to the latest plugin version.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-86787?

CVE-2026-86787 is a high-severity code injection vulnerability in Unknown affiliate-toolkit, published on 14 Oct 2026. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

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.

Weakness: CWE-94

Which versions are affected by CVE-2026-86787?

How do I fix CVE-2026-86787?

No fix has been published for CVE-2026-86787 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-86787 being exploited?

There is no known exploitation of CVE-2026-86787 in the wild and no public exploit code.

Sources

Also known as GHSA-rwr2-57r9-hfq7.

Is CVE-2026-86787 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free