Description
WordPress Insert PHP plugin versions before 2.5.1 contain a PHP code injection vulnerability that allows unauthenticated attackers to execute arbitrary PHP code by injecting malicious shortcodes through the WordPress REST API. Attackers can send POST requests to the wp-json/wp/v2/posts endpoint with crafted content containing insert_php shortcodes to include and execute remote PHP files on the server.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Themeisle | Woody Code Snippets | < 2.5.1 | 2.5.1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
Polosss/By-Poloss..-..CVE-2017-20251 ★ 1 · Jun 9, 2026
Insert PHP Plugin PHP Code Injection
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- ExploitDB-41308 exploit
- WordPress Changelog product patch
- VulnCheck Advisory: WordPress Insert PHP Plugin < 3.3.1 PHP Code Injection via REST API third-party-advisory