Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-8832: CWE-94 Improper Control of Generation of Code ('Code Injection') in smub WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager

0
High
VulnerabilityCVE-2026-8832cvecve-2026-8832cwe-94
Published: Wed May 27 2026 (05/27/2026, 06:46:16 UTC)
Source: CVE Database V5
Vendor/Project: smub
Product: WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager

Description

CVE-2026-8832 is a high-severity vulnerability in the WPCode - Insert Headers and Footers + Custom Code Snippets WordPress plugin (up to version 2. 3. 5). It allows authenticated users with author-level permissions or higher to execute arbitrary PHP code remotely via the XML-RPC interface. This occurs because the plugin registers a custom post type without proper capability restrictions, enabling creation and publishing of executable PHP snippets that run server-side when rendered. The vulnerability has a CVSS score of 8. 8, indicating a significant risk of remote code execution with high impact on confidentiality, integrity, and availability. No official patch or remediation guidance is currently available from the vendor, and no known exploits in the wild have been reported.

CVSS v3.1

Score 8.8high

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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/27/2026, 08:18:23 UTC

Technical Analysis

The WPCode plugin for WordPress registers its 'wpcode' custom post type without custom capability restrictions, causing WordPress to default to standard post capabilities. This allows authenticated users with author-level access or higher to create and publish PHP snippet posts via the XML-RPC wp.newPost method. These snippets are executed server-side through an eval() call in the run_eval() function when the [wpcode] shortcode renders the snippet. This improper control of code generation (CWE-94) leads to remote code execution, impacting all sites using affected versions up to 2.3.5.

Potential Impact

An attacker with author-level WordPress access can execute arbitrary PHP code on the server remotely, potentially leading to full site compromise, data theft, or service disruption. The vulnerability affects confidentiality, integrity, and availability of the affected WordPress site. No known exploits in the wild have been reported at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict author-level access to trusted users only and consider disabling XML-RPC if not required. Monitor for updates from the plugin vendor and apply any official patches promptly once available.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2026-05-18T13:53:59.461Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a16a562e29bf47b50a64317

Added to database: 5/27/2026, 8:03:46 AM

Last enriched: 5/27/2026, 8:18:23 AM

Last updated: 5/27/2026, 9:15:27 AM

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses