Critical severity · published Jun 9, 2026
CVE-2017-20251
WordPress Insert PHP Plugin 4.7.0 PHP Code Injection via REST API
9.8
CVSS
0.6%
EPSS
No
On KEV
Description
WordPress Insert PHP plugin versions before 3.3.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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 46% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
WC
Woody Code Snippets · Themeisle
before 3.3.1 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2017-20251
CVE.org
https://www.cve.org/CVERecord?id=CVE-2017-20251
fr.wordpress.org
https://fr.wordpress.org/plugins/insert-php/
www.exploit-db.com
https://www.exploit-db.com/exploits/41308
www.vulncheck.com
https://www.vulncheck.com/advisories/wordpress-insert-php-plugin-php-code-injection-via-rest-api
