Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2017-20251 EUVD-2017-18977GHSA-mxq7-4xcj-jccm

WordPress Insert PHP Plugin < 2.5.1 PHP Code Injection via REST API

Published Jun 9, 2026 · Updated Nov 12, 2026 · Assigned by VulnCheck

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

VendorProductAffectedFixed
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

References