CVE-2026-8978
Description
SQL Injection in OptinCraft WordPress plugin allows authenticated admins to extract sensitive database information.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
SQL Injection in OptinCraft WordPress plugin allows authenticated admins to extract sensitive database information.
Vulnerability
The OptinCraft – Drag & Drop Optins & Popup Builder for WordPress plugin is vulnerable to SQL Injection in all versions up to and including 1.2.0. This vulnerability exists due to insufficient escaping and preparation of the order_by parameter within the SQL query, specifically in CampaignRepository.php [3] which is called by CampaignController.php [2]. The code responsible for compiling SQL queries can be found in Compiler.php [1].
Exploitation
An attacker with administrator-level access or higher can exploit this vulnerability. The attacker needs to send a crafted request to the plugin's API, manipulating the order_by parameter to inject additional SQL commands. This can be done through the plugin's administrative interface or via API calls that are processed by the index method in CampaignController.php [2].
Impact
Successful exploitation allows an authenticated attacker to append malicious SQL queries to existing ones. This can lead to the extraction of sensitive information from the WordPress database, compromising data integrity and confidentiality. The scope of the compromise is limited to the data accessible by the database user the WordPress application is configured to use.
Mitigation
The vulnerability is fixed in versions after 1.2.0. Users are advised to update the OptinCraft plugin to the latest available version. No workarounds are disclosed in the available references. The plugin is not listed on the CISA KEV catalog.
- https://plugins.trac.wordpress.org/browser/optincraft/tags/1.0.2/vendor/vendor-src/wpmvc/database/src/Query/Compilers/Compiler.php#L286
- https://plugins.trac.wordpress.org/browser/optincraft/tags/1.0.2/app/Http/Controllers/Admin/CampaignController.php#L37
- https://plugins.trac.wordpress.org/browser/optincraft/tags/1.0.2/app/Repositories/CampaignRepository.php#L55
AI Insight generated on Jun 6, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2<=1.2.0+ 1 more
- (no CPE)range: <=1.2.0
- (no CPE)range: <=1.2.0
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
5- plugins.trac.wordpress.org/browser/optincraft/tags/1.0.2/app/Http/Controllers/Admin/CampaignController.phpnvd
- plugins.trac.wordpress.org/browser/optincraft/tags/1.0.2/app/Repositories/CampaignRepository.phpnvd
- plugins.trac.wordpress.org/browser/optincraft/tags/1.0.2/vendor/vendor-src/wpmvc/database/src/Query/Compilers/Compiler.phpnvd
- plugins.trac.wordpress.org/changesetnvd
- www.wordfence.com/threat-intel/vulnerabilities/id/f28a95b0-0f7d-43c4-acf9-13c561245f4bnvd
News mentions
0No linked articles in our index yet.