RCE in Smub Wpcode – Insert Headers And Footers + Custom Code Snippets WordPress Manager
CVE-2026-8832
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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.012 (65.9th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 66th percentile — 65.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.019 · newest: 0.012 · change: -0.007
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
References
- www.wordfence.com/threat-intel/vulnerabilities/id/75a2e8b1-d5e0-4f7b-a70a-f0aad…
- plugins.trac.wordpress.org/browser/insert-headers-and-footers/tags/2.3.5/includ…
- plugins.trac.wordpress.org/browser/insert-headers-and-footers/tags/2.3.5/includ…
- plugins.trac.wordpress.org/browser/insert-headers-and-footers/tags/2.3.5/includ…
- plugins.trac.wordpress.org/browser/insert-headers-and-footers/tags/2.3.5/includ…
- plugins.trac.wordpress.org/browser/insert-headers-and-footers/tags/2.3.5/includ…
- plugins.trac.wordpress.org/changeset/3549060/insert-headers-and-footers/trunk/i…
- plugins.trac.wordpress.org/changeset
Frequently asked questions
- What is CVE-2026-8832?
- CVE-2026-8832 is a high-severity vulnerability in Smub Wpcode – Insert Headers And Footers + Custom Code Snippets WordPress Manager, classified under Code Injection. CVSS score: 8.8/10. Published 2026-05-27.
- How severe is CVE-2026-8832?
- High severity. CVSS v3 base score is 8.8 out of 10.
- Is CVE-2026-8832 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.