Skip to main content

WP Coder CVE-2026-104677

| EUVDEUVD-2026-94182 HIGH
Code Injection (CWE-94)
2026-10-07 WPScan GHSA-pfgx-g476-6w3m
7.2
CVSS 3.1 · Vendor: WPScan
View

Attack ChainAIDerived

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

  1. Access
    Obtain or compromise Editor-level WordPress account
  2. Delivery
    Open WP Coder PHP snippet feature
  3. Exploit
    Save snippet containing arbitrary PHP
  4. Execution
    Execute snippet on server
  5. Impact
    Full site/server compromise

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

Requires an authenticated WordPress account holding the Editor role (or any role carrying the content capability WP Coder uses to gate its PHP feature), on a site running WP Coder version 4.0 up to but not including 4.5.2 with the plugin active. No special non-default plugin configuration is needed - the flaw is that the code-execution feature is reachable by Editors under default capability mappings instead of being restricted to administrators. Limiting factors that reduce realistic risk: exploitation is NOT remote-unauthenticated - the attacker must first possess or compromise an Editor-level (or higher) credential, so sites that grant Editor access only to fully trusted staff face materially lower exposure than sites with many semi-trusted Editors.

Impact

This is a genuine privilege-boundary/RCE flaw but a moderate real-world priority, not a drop-everything emergency. The signals are internally consistent: the provided CVSS 3.1 vector (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H, 7.2) correctly reflects that no user interaction is needed and that successful exploitation yields full confidentiality/integrity/availability impact (arbitrary PHP execution = complete site compromise), but that a pre-authenticated privileged session is required (PR). A public exploit exists (WPScan), which raises practical risk, but there is NO CISA KEV listing and NO EPSS score was provided, so there is no evidence of active or widespread exploitation - exploitation status is 'publicly available exploit code exists', which must not be conflated with in-the-wild use. The key nuance the raw score obscures: the vulnerability's significance is precisely that a NON-administrative Editor can reach an admin-only code-execution feature, so modeling it as PR:H understates reachability - an Editor is a lower-trust role than the vendor intended for this feature. Net: a confirmed, patch-available, publicly-exploitable authenticated RCE in a niche plugin - prioritize patching on any site that delegates Editor accounts to semi-trusted users, but it is lower urgency where only fully-trusted staff hold Editor+ roles.

Exploit ScenarioDerived

A site grants Editor accounts to contributors, freelancers, or a compromised/ phished non-admin user. Because the WP Coder PHP code-execution feature is gated on a content capability the Editor role holds by default rather than on administrator status, that Editor opens the plugin, saves a snippet containing arbitrary PHP (e.g., a web shell), and triggers its execution - fully compromising the server. A public proof-of-concept from WPScan lowers the skill required, and with CVSS AC:L and no user interaction the action is reliable once the attacker has Editor access.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 07, 2026

Authenticated users holding the WordPress Editor role on sites running the WP Coder plugin (versions 4.0 up to but not including 4.5.2) can save and execute arbitrary PHP code on the server, resulting in full site compromise. The flaw is a privilege-boundary failure: the plugin gates its PHP code-execution feature on a content capability that the Editor role holds by default rather than restricting it to administrators, so no plugin misconfiguration is needed. Exploitation requires an existing Editor-level (or higher) account - it is not remote-unauthenticated - but publicly available exploit code exists, and the vendor has released WP Coder 4.5.2 to fix it. No confirmed active exploitation (CISA KEV) has been reported, so risk is concentrated on sites that hand Editor access to semi-trusted contributors.

RemediationAI

Vendor-released patch: upgrade WP Coder to version 4.5.2 or later, which is the first release to restrict the PHP code-execution feature to Administrators; the fix is available per the vendor and documented in the WPScan advisory at https://wpscan.com/vulnerability/2e730bf3-ebf9-4c0d-bb05-8ca94c7cab60/. Until the upgrade can be applied, the most direct compensating control is to deactivate WP Coder entirely - the trade-off is that any legitimate PHP/CSS/JS snippets stored by the plugin will stop rendering on the site. If the plugin must stay active, use a role-management plugin to remove the specific content capability that WP Coder uses to gate its PHP feature from the Editor role (and any custom roles that inherit it), leaving it only with Administrators; the trade-off is that Editors may lose the ability to manage the affected content type and role changes can be reverted by later role-editing. Additional hardening with low side effects: audit existing posts, snippets, and plugin-stored files for injected PHP that may have been planted by an Editor prior to patching, rotate credentials and salts for any site where an Editor account was untrusted, and tighten who is granted the Editor role so that semi-trusted contributors do not hold code-execution reach. Note that removing PHP execution capability does not undo code already persisted on the server, so a post-fix integrity review is recommended for any site with many Editor accounts.

Affected VersionsENISA

WP Coder 4.0 <4.5.2

Affected Packages

euvd wp_coder fix: 4.5.2

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

CWE-94 (Improper Control of Generation of Code, 'Code Injection') describes the root cause class here. WP Coder is a WordPress plugin that lets site owners embed PHP, CSS, and JavaScript snippets into posts and pages; because the plugin stores that snippet content and later evaluates it server-side, whoever can create or edit that content effectively controls PHP execution on the host. WordPress's capability model separates content-oriented capabilities (held by the Editor role by default) from administrative capabilities such as manage_options/activate_plugins (held only by Administrators). WP Coder's authorization check for its PHP execution feature was written against a content capability that Editors already carry, so the intended Administrator-only boundary collapsed to the Editor boundary. The reported CPE cpe:2.3:a:unknown:wp_coder:*:*:*:*:*:*:*:* uses an unresolved vendor namespace, meaning standard CPE-based asset matching may not reliably identify installations - inventory should rely on WordPress plugin listings instead. The original vector carried PR:H (privileged), while the independent assessment places the prerequisite at PR:L because an Editor role, not an Administrator, is sufficient under default capability mappings; impact to confidentiality, integrity, and availability remains High in both readings.

Know when Wp Coder 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

Vendor (WPScan) PRIMARY 7.2 HIGH
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

The Editor role provides basic non-administrative content privileges, so PR:L (not PR:H); remote, no interaction, and arbitrary PHP execution yields C/I/A:H.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (WPScan).

CVSS VectorVendor: WPScan

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

Lifecycle Timeline

4
CVSS changed
Oct 07, 2026 - 10:22 NVD
7.2 (HIGH)
Patch available
Oct 07, 2026 - 08:16 EUVD
CVE Published
Oct 07, 2026 - 06:00 cve.org
UNKNOWN (no severity yet)
CVE Published
Oct 07, 2026 - 06:00 cve.org
HIGH 7.2

DescriptionCVE.org

The WP Coder WordPress plugin before 4.5.2 does not restrict access to its PHP code-execution feature to administrators, gating it on a content capability that the Editor role holds by default, which allows Editor-level users to save and execute arbitrary PHP code on the server and fully compromise the site.

Technical POC Analysis

CWE-94 (Improper Control of Generation of Code / Code Injection), classified by WPScan as RCE, OWASP A1: Injection.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

WP Coder plugin for WordPress, versions 4.0 through 4.5.1, permits users with Editor-level access to execute arbitrary PHP code, leading to complete site compromise. Organizations that grant Editor permissions to contributors, contractors, or junior staff face a heightened risk of data theft, defacement, or malware distribution from a compromised or malicious account. Publicly available exploit code exists, but no confirmed active exploitation has been reported; Vendor-released patch: 4.5.2 is the critical remediation.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Low
niche WordPress code-snippet plugin, limited install base
Exploit
POC
Public exploit code exists
Data Quality
5 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 Yes
EPSS 0.4%
Patch available Yes
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

56
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: +20
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.

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