CVE-2026-86787: CWE-94 Improper Control of Generation of Code ('Code Injection') in affiliate-toolkit
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.
CVSS v3.1
Score 7.2high
Affected software
affiliate-toolkit
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-86787 is a code injection vulnerability (CWE-94) in the affiliate-toolkit WordPress plugin before version 3.9.1. The plugin does not properly restrict low-privileged users, such as those with the Contributor role, from submitting template content that the bundled templating engine compiles and executes as PHP. This enables these users to execute arbitrary PHP code on the server, potentially compromising the system.
Potential Impact
An attacker with Contributor or higher privileges can execute arbitrary PHP code on the server hosting the WordPress site. This can lead to full server compromise, data theft, or site defacement depending on the attacker's intent and environment.
Mitigation Recommendations
Upgrade the affiliate-toolkit plugin to version 3.9.1 or later, where this vulnerability is fixed. No other mitigation guidance is provided. Patch status is not explicitly stated but the affected versions are prior to 3.9.1, indicating that 3.9.1 contains the fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- WPScan
- Date Reserved
- 2026-09-08T11:51:44.005Z
- State
- PUBLISHED
Threat ID: 6acf22582cdf04f656513ba2
Added to database: 10/14/2026, 06:34:00 UTC
Last enriched: 10/14/2026, 07:04:09 UTC
Last updated: 10/14/2026, 13:49:16 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.