WPCode <= 2.3.5 - Authenticated (Author+) Remote Code Execution via CPT Capability Bypass via XML-RPC wp.newPost

Summary

CVECVE-2026-8832
StatePUBLISHED
AssignerWordfence
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-05-27 08:16:45 UTC
Updated2026-05-27 14:50:47 UTC
DescriptionThe 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')


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary8.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1CNADECLARED8.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

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

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Smub WPCode Insert Headers And Footers Custom Code Snippets WordPress Code Manager affected 2.3.5 semver Not specified

References

ReferenceSourceLinkTags
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

SourceTimeEvent
CNA2026-05-18T14:09:28.000ZVendor Notified
CNA2026-05-26T17:48:25.000ZDisclosed
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report