Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with Author-level account
-
ExploitTrigger plugin media-replacement request
-
ExecutionSite-wide search-replace skips per-post capability check
-
ImpactOverwrite Administrator-owned posts shown to visitors
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation 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 account at WordPress Author role or above on the target site (CVSS PR:L), and at least one published post referencing the media URL being replaced so the search-and-replace has something to rewrite. The attacker triggers the plugin's normal media-replace action (doReplaceQuery), which runs across the whole posts table with no per-post capability check - this is default plugin behavior in all versions up to and including 4.2.2, requiring no non-default configuration and no user interaction. Limiting factors: the attacker must already have a valid Author+ account (so not remote-unauthenticated), and the modification is constrained to substituting the old media URL with the new one rather than injecting arbitrary content, which bounds the integrity impact even though many posts (including Administrator-owned ones) can be affected at once. |
| Impact | Severity signals are mixed and point to a real but non-emergency issue. The CVSS 3.1 base score is 4.3 (medium) with vector AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N: network-reachable, low attack complexity, no user interaction, but requiring existing authenticated access (PR:L - Author role or above per the description) and yielding only limited integrity impact with no confidentiality or availability loss. The vuln.today decision label is this_month, consistent with a medium-priority defect rather than act_now/emergency. No EPSS score, no CISA KEV listing, and no public exploit reference are present in the input, so there is no public exploit identified at time of analysis and no measured exploitation probability - EPSS is simply missing rather than low, which should be noted rather than treated as reassurance. The factor that elevates concern above the raw 4.3 is the cross-privilege nature: an Author can cause changes to Administrator-owned published posts that WordPress's standard admin UI and REST API would forbid, with the result immediately visible to unauthenticated visitors. This is a broken-authorization/defacement risk, not a code-execution or data-theft risk. The fix in v4.2.3 also mentions hardening against a possible PHP Object Injection reported by multiple teams; that is a separate concern and not what this CWE-862 authorization-bypass CVE describes, so the two should not be conflated. |
| Exploit ScenarioDerived | An attacker holding an Author-level account on a WordPress site running Enable Media Replace ≤4.2.2 replaces a media file whose URL appears in posts they do not own. The plugin's doReplaceQuery() performs a database-wide search-and-replace of the old media URL across all posts without any per-post capability check, silently rewriting post_content of Administrator-owned published posts and surfacing the change to unauthenticated visitors. No public exploit code or PoC reference is present in the supplied data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 28, 2026
Authorization bypass in the WordPress plugin Enable Media Replace (all versions up to and including 4.2.2) allows an authenticated user holding the Author role or above to rewrite the post_content of published posts that reference a replaced media file - including posts owned by Administrators - with the changes immediately visible to unauthenticated site visitors. The root cause is that the plugin's doReplaceQuery() performs a database-wide search-and-replace across every post containing the old media URL without any per-post capability check, so a single Author-triggered replace request can silently overwrite many posts that WordPress's admin UI and REST API would otherwise forbid that user from editing. Severity is modest (CVSS 4.3, PR:L, integrity-only) because the actor must already hold a valid Author+ account and the rewrite is constrained to substituting the old media URL with the new one; no public exploit code has been identified at time of analysis, and the vendor has released version 4.2.3 which, among other hardening, restricts Author-role users to the standard replace option only.
RemediationAI
Vendor-released patch: 4.2.3 - upgrade Enable Media Replace from any 4.1.x/4.2.x build (including 4.1.9 and 4.2.2) to version 4.2.3, available from the WordPress.org plugin directory and the vendor release page at https://github.com/short-pixel-optimizer/enable-media-replace/releases/tag/v4.2.3; the Wordfence advisory is at https://www.wordfence.com/threat-intel/vulnerabilities/id/aff42473-63c6-41ca-8312-058f213e2302?source=cve. The 4.2.3 release addresses this authorization gap by limiting Author-role users to the standard replace option, with renaming, location changes and background removal reserved for Editors and above, so the fix does change plugin behaviour for Author-level accounts and should be validated against editorial workflows before/after deployment. Until the upgrade is applied, the practical compensating control is to reduce the population that can reach the replace action: audit and remove unnecessary Author-level accounts and, where site policy permits, temporarily downgrade Author users (whose role is the minimum this exploit requires) or restrict media replacement to Editor-and-above operators - the trade-off being that Authors lose the replace workflow entirely. Because the vulnerable operation is a normal plugin function rather than a misconfiguration, there is no separate configuration switch documented in the available sources that disables only the site-wide search-and-replace; note also that 4.2.3 bundles additional fixes (object-injection hardening, folder checks on multisite, standard WordPress upload validation), so the upgrade should be treated as a combined hardening step rather than a single-issue patch. After upgrading, review recent post_content for unexpected substitutions of media URLs in older, Editor- or Administrator-owned posts to establish whether the flaw was exercised.
Affected VersionsENISA
Affected Packages
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
Enable Media Replace is a WordPress media-management plugin by ShortPixel that lets a site operator swap an uploaded attachment for a new file while keeping the same attachment record, optionally updating references to the old file throughout the site's content. The vulnerable path is the replacement pipeline reachable through UploadViewController.php and ReplaceController.php (line 253) into the bundled Replacer library (shortpixel/replacer/src/Replacer.php, line 250), where doReplaceQuery() executes a search-and-replace over the posts table for the old media URL. The flaw class is CWE-862 (Missing Authorization): the controller verifies that the requester may perform a media replacement, but the subsequent content-rewriting step never checks the requester's capability against each individual post being modified, so the operation is effectively evaluated at the wrong privilege level. WordPress normally gates post_content edits through per-post capability checks (edit_post for the specific post ID) in both the admin UI and the REST API; this plugin bypasses that model by acting on rows directly. The vendor's 4.2.3 release notes confirm a related hardening: Author-role users now only get the standard replace option, while renaming, changing the file location and background removal are limited to Editors and above, following a Wordfence security report. The same release also hardened the database replacement against a possible PHP object injection, strengthened folder checks for replacements into a new location (including multisite) and routed replacement uploads through standard WordPress media checks - those items are separate from this CVE and should not be conflated with it.
Know when Enable Media Replace 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
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Author-level authenticated access gives PR:L with AC:L/UI:N over the network; the bounded media-URL substitution across posts is a partial integrity loss (I:L) with no confidentiality or availability impact.
Primary rating from Vendor (Wordfence).
CVSS VectorNVD
DescriptionNVD
The Enable Media Replace plugin for WordPress is vulnerable to authorization bypass in all versions up to, and including, 4.2.2. This is due to the plugin not properly verifying that a user is authorized to perform an action. This makes it possible for authenticated attackers, with author-level access and above, to modify the post_content of any published post referencing the replaced media - including Administrator-owned posts - making changes immediately visible to unauthenticated visitors. The doReplaceQuery() method performs a database-wide search-and-replace across all posts containing the old media URL without any per-post capability check, meaning a single Author-triggered request can silently overwrite a large number of posts that WordPress's standard admin UI and REST API would otherwise forbid that user from editing.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Enable Media Replace
View allThe Enable Media Replace WordPress plugin before 4.1.3 unserializes user input via the Remove Background feature, which
The Enable Media Replace WordPress plugin before 4.0.2 does not prevent authors from uploading arbitrary files to the si
The Enable Media Replace WordPress plugin before 4.0.0 does not ensure that renamed files are moved to the Upload folder
Stored cross-site scripting in the ShortPixel Enable Media Replace WordPress plugin (all versions through 4.2.1) allows
The Enable Media Replace plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the SHORTPIXEL_DEBUG p
EUVD-2026-111819
GHSA-582x-674x-hc38
NVD
CVE.org
EPSS
Exploit-DB