Skip to main content

WPCode EUVDEUVD-2026-32100

| CVE-2026-8832 HIGH
Code Injection (CWE-94)
2026-05-27 security@wordfence.com GHSA-54cw-c4v7-gx5m
8.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain author-level WordPress credentials
  2. Delivery
    Call XML-RPC wp.newPost to create wpcode PHP snippet
  3. Exploit
    Publish executable snippet post
  4. Execution
    Trigger [wpcode] shortcode rendering
  5. Impact
    eval() executes attacker PHP server-side

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated WordPress account with author-level capabilities or higher (CVSS PR:L), and the site's XML-RPC interface (xmlrpc.php / wp.newPost) must be reachable - the description specifically calls out XML-RPC as the creation path that bypasses the expected admin-only restriction. The malicious wpcode snippet must also be rendered through the [wpcode] shortcode for the eval() in run_eval() to fire. Limiting factors that reduce real-world risk: the attacker cannot exploit this unauthenticated (an author-or-higher credential is mandatory), so sites that tightly control author accounts, disable XML-RPC, or restrict who can publish are substantially harder to attack; no user interaction is required once the attacker has credentials and XML-RPC access. Affected configurations are any deployment running WPCode ≤ 2.3.5 with default capability handling.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 8.8) describes a network-reachable, low-complexity attack requiring low privileges and no user interaction, with high impact to confidentiality, integrity and availability - consistent with the description's claim that an author-level account yields server-side PHP execution. The EPSS score is low (0.44%, 63rd percentile), indicating no broad automated exploitation activity is currently observed, and the CVE is not listed in CISA KEV, so this is not confirmed actively exploited. No SSVC decision data was provided. The signals are coherent rather than conflicting: high technical impact and easy exploitation conditional on a single non-trivial prerequisite - the attacker must already hold author-or-higher credentials. That authentication requirement is what separates this from a wormable unauthenticated RCE and explains the modest EPSS. For sites with many lower-trust authors, contributors who have been elevated, or where author credentials can be obtained or guessed, this is a genuine high priority; for tightly controlled single-author sites the practical risk is lower but still significant given the trivial post-authentication path.

Exploit ScenarioDerived

An attacker who controls or compromises an author-level WordPress account authenticates to the site's XML-RPC endpoint and calls wp.newPost to create and publish a 'wpcode' post whose body contains a malicious PHP payload. When that snippet is rendered via the [wpcode] shortcode, run_eval() passes the payload to eval(), executing the attacker's code server-side. The attack is network-based and low-complexity per CVSS, requiring no victim interaction; no public exploit is identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 27, 2026

Remote code execution in the WPCode WordPress plugin (versions through 2.3.5) lets authenticated author-level users run arbitrary PHP on the server. Because the plugin registers its 'wpcode' custom post type without a dedicated capability_type, WordPress falls back to standard post capabilities, so any author can create and publish PHP snippet posts via the XML-RPC wp.newPost method, which are later passed to eval() when rendered through the [wpcode] shortcode. EPSS is modest at 0.44% (63rd percentile) and there is no public exploit identified at time of analysis, but the low privilege bar and full CIA impact make this a high-priority patch for any multi-author site.

RemediationAI

Vendor-released patch: 2.3.6 - upgrade WPCode to version 2.3.6 or later, which is the fixed release identified by the plugin-repository changeset diffing tag 2.3.5 against 2.3.6 (https://plugins.trac.wordpress.org/changeset?old_path=%2Finsert-headers-and-footers/tags/2.3.5&new_path=%2Finsert-headers-and-footers/tags/2.3.6) and the targeted post-type.php fix in changeset 3549060 (https://plugins.trac.wordpress.org/changeset/3549060/insert-headers-and-footers/trunk/includes/post-type.php), which adds capability restrictions to the wpcode post type. If immediate patching is not possible, reduce exposure by disabling XML-RPC (block or filter the wp.newPost method, e.g. via the xmlrpc_methods filter or a WAF rule) - note this can break legitimate clients such as the WordPress mobile app, Jetpack, and remote-publishing tools. As a stronger short-term control, restrict author-and-above accounts to fully trusted users and audit existing author/editor accounts for unexpected wpcode posts; you can also temporarily deactivate the plugin if no snippets are in active use, at the cost of losing any code injected through it. Review the Wordfence advisory (https://www.wordfence.com/threat-intel/vulnerabilities/id/75a2e8b1-d5e0-4f7b-a70a-f0aadf58c778?source=cve) for detection guidance.

Affected VersionsENISA

WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager 0 ≤2.3.5

Affected Packages

euvd wpcode_insert_headers_and_footers_custom_code_snippets_wordpress_code_manager no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability lives in WPCode's snippet-execution pipeline for WordPress. The root cause is CWE-94 (Improper Control of Generation of Code, i.e. code injection): wpcode_register_post_type() in includes/post-type.php registers the 'wpcode' custom post type without setting capability_type or a map_meta_cap capability set, so WordPress core applies the generic post/page capabilities (edit_posts, publish_posts) rather than an admin-only set. PHP-type snippets are ultimately handled by run_eval() in class-wpcode-snippet-execute-php.php, which calls PHP's native eval() on the snippet body when the [wpcode] shortcode (includes/shortcode.php) renders the snippet. Combined with the create paths exposed by the XML-RPC API (wp.newPost), this turns a content-authoring capability into direct server-side code execution. There is no CPE string in the supplied data; the EUVD entry identifies the affected component as 'WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager' at versions 0 through 2.3.5.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

The WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager plugin for WordPress is vulnerable to Remote Code Execution in versions up to, and including, 2.3.5 This is due to the 'wpcode' custom post type being registered without a custom capability_type or capability restrictions in the wpcode_register_post_type() function, allowing WordPress core to fall back to standard post capabilities for all creation paths including XML-RPC. This makes it possible for authenticated attackers, with author-level access and above, to create and publish executable PHP snippet posts via XML-RPC wp.newPost, which are then executed server-side via eval() in the run_eval() function when the snippet is rendered through the [wpcode] shortcode.

Executive ViewAI

Why It Matters

The WPCode WordPress plugin (versions through 2.3.5) allows authenticated author-level users to execute arbitrary PHP code on the server through the XML-RPC API. Multi-author WordPress installations face immediate risk of data exfiltration and unauthorized system access. No vendor patch is currently available, requiring urgent deployment of compensating controls and upgrade planning.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable or restrict XML-RPC protocol at network/WAF level; (2) Restrict author-level account creation to essential, vetted personnel only; (3) Remove WPCode plugin from production if non-critical pending security update; (4) Enable comprehensive audit logging of post creation and modification events; (5) Implement file integrity monitoring on WordPress content directories; (6) Review and delete all WPCode snippet posts created by non-administrative users.

Threat Intelligence Overview

EPSS Score
0.4%
Top 37% exploitable
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy