Code injectionin CVE-2017-20251.
Proof of concept public (Exploit-DB).
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.
- Upgrade Woody Code Snippets to 2.5.1 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 8 Jun 2026CVE ID reserved by VulnCheck.
- 9 Jun 2026Published in the CVE List.
- 9 Jun 2026First public proof of concept on GitHub.
- 12 Nov 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (Exploit-DB). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Same weakness: Code injection
- wordpress.org product, patch
- www.vulncheck.com third-party-advisory
Patchminder. CVE-2017-20251: Code injection in CVE-2017-20251. https://patchminder.com/cve/cve-2017-20251/ (accessed 5 December 2026).