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.
Published: 2026-06-09
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in the WordPress Insert PHP plugin allows attackers to inject malicious shortcodes via the REST API and execute arbitrary PHP code on the server. By sending a crafted POST request to the wp-json/wp/v2/posts endpoint, an unauthenticated attacker can include external PHP files and run them with the site’s permissions. This is a classic code injection weakness (CWE‑94) that can compromise confidentiality, integrity, and availability of the site.

Affected Systems

Themeisle Woody Code Snippets, the WordPress Insert PHP plugin, is affected in all releases before 3.3.1. WordPress sites that have installed this plugin and left the REST API publicly accessible are at risk. The plugin is commonly used as a code execution shortcut for site administrators.

Risk and Exploitability

The CVSS score of 9.3 reflects a high‑severity, unauthenticated remote code execution exploit. The EPSS score is not available, but the widespread nature of WordPress and the public REST API endpoint suggests a high likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog, indicating no known large‑scale active exploitation at the time of reporting. Attackers can reach the vulnerable endpoint from any network and require no special privileges, making the exploitable risk significant for exposed sites.

Generated by OpenCVE AI on June 9, 2026 at 13:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Insert PHP plugin to version 3.3.1 or later.
  • If the plugin is not required, uninstall or disable it.
  • Restrict access to the WordPress REST API or block POST requests to wp-json/wp/v2/posts, for example by using a firewall rule or plugin security settings.
  • Apply the general WordPress security best practice of disabling file editing capability via wp-config.php.

Generated by OpenCVE AI on June 9, 2026 at 13:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 09 Jun 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 09 Jun 2026 15:15:00 +0000

Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Vendors & Products Wordpress
Wordpress wordpress

Tue, 09 Jun 2026 12:30:00 +0000

Type Values Removed Values Added
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.
Title WordPress Insert PHP Plugin 4.7.0 PHP Code Injection via REST API
First Time appeared Cm-wp
Cm-wp woody Code Snippets
Weaknesses CWE-94
CPEs cpe:2.3:a:cm-wp:woody_code_snippets:*:*:*:*:*:wordpress:*:*
Vendors & Products Cm-wp
Cm-wp woody Code Snippets
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Cm-wp Woody Code Snippets
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-06-09T16:13:54.058Z

Reserved: 2026-06-08T11:54:25.459Z

Link: CVE-2017-20251

cve-icon Vulnrichment

Updated: 2026-06-09T16:13:49.816Z

cve-icon NVD

Status : Deferred

Published: 2026-06-09T13:16:35.140

Modified: 2026-06-09T13:51:18.770

Link: CVE-2017-20251

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-09T15:00:07Z

Weaknesses