WPCode <= 2.3.5 - Authenticated (Author+) Remote Code Execution via CPT Capability Bypass via XML-RPC wp.newPost
Summary
| CVE | CVE-2026-8832 |
|---|---|
| State | PUBLISHED |
| Assigner | Wordfence |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-05-27 08:16:45 UTC |
| Updated | 2026-05-27 14:50:47 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 8.8 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS: 0.004360000 probability, percentile 0.632710000 (date 2026-05-30)
Problem Types: CWE-94 | CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Smub | WPCode Insert Headers And Footers Custom Code Snippets WordPress Code Manager | affected 2.3.5 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| www.wordfence.com/threat-intel/vulnerabilities/id/75a2e8b1-d5e0-4f7b-a70a-f0aad... | [email protected] | www.wordfence.com | |
| plugins.trac.wordpress.org/browser/insert-headers-and-footers/tags/2.3.5/includes/class-... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/insert-headers-and-footers/tags/2.3.5/includes/post-t... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/insert-headers-and-footers/tags/2.3.5/includes/execut... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/insert-headers-and-footers/tags/2.3.5/includes/class-... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/insert-headers-and-footers/tags/2.3.5/includes/shortc... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/changeset/3549060/insert-headers-and-footers/trunk/includes/p... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/changeset | [email protected] | plugins.trac.wordpress.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Yongtae Jeon (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-05-18T14:09:28.000Z | Vendor Notified |
| CNA | 2026-05-26T17:48:25.000Z | Disclosed |
There are currently no legacy QID mappings associated with this CVE.