Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain WordPress editor-level credentials
-
DeliveryAccess Media Library Replace Media feature
-
ExploitInject stored XSS payload into unvalidated input field
-
InstallPayload persisted in WordPress database
-
C2Administrator loads affected content in browser
-
ExecuteInjected script executes in admin browser context
-
ImpactSession token exfiltrated or privileged action performed
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated WordPress session with at minimum the capability to use the Enable Media Replace plugin's media replacement feature, corresponding to Editor role or higher in a default WordPress configuration (consistent with PR:H in the CVSS vector). After the attacker injects the stored payload, a separate victim user - typically one with Administrator role to be a high-value target - must load the affected content in their browser, triggering script execution (UI:R per CVSS vector). This limits exploitation to multi-user WordPress deployments where contributor, editor, or other intermediate-privilege accounts coexist alongside administrator accounts. Single-administrator sites where the same person who could inject the payload is also the only user are not meaningfully at risk. No special server configuration, non-default plugin settings, or additional features beyond the Enable Media Replace plugin being installed and active are required to trigger the vulnerability. |
| Impact | The NVD CVSS 3.1 score of 5.9 (Medium) accurately reflects a bounded but real threat. The network attack vector (AV:N) and low complexity (AC:L) indicate the exploit is technically straightforward once prerequisites are met, but the requirement for high privileges (PR:H) and victim user interaction (UI:R) substantially constrains the realistic attack surface. An attacker must first compromise or possess editor-level or higher WordPress credentials before the vulnerability is reachable. The scope change (S:C) is the most significant real-world risk amplifier: a lower-privileged compromised account could use this flaw to target an administrator's session, effectively enabling privilege escalation within the CMS. No EPSS score, KEV status, or POC code is provided in available intelligence, making quantitative exploitation probability assessment impossible; the absence of KEV listing suggests no confirmed widespread active exploitation as of analysis date. This should be treated as a moderate priority for multi-contributor WordPress installations and a lower priority for single-administrator sites. |
| Exploit ScenarioDerived | An attacker who has obtained WordPress editor-level credentials through phishing or credential stuffing accesses the Media Library, selects an existing media item, and uses the Replace Media feature to inject a malicious JavaScript payload into an input field that is stored without sanitization. When a site administrator later navigates to the WordPress dashboard or a page that renders the affected media metadata, the stored script executes silently in the admin's browser, potentially exfiltrating the session cookie or issuing authenticated admin API requests on the attacker's behalf. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 01, 2026
Stored cross-site scripting in the ShortPixel Enable Media Replace WordPress plugin (all versions through 4.2.1) allows an authenticated attacker with high-level privileges to inject persistent malicious scripts via the media replacement workflow, which then execute in the browser context of any WordPress user who subsequently views the affected content. The scope change confirmed by the CVSS vector (S:C) means a compromised editor-level account could be leveraged to target administrator sessions, enabling privilege escalation within the WordPress admin interface. No public exploit code or CISA KEV listing has been identified at time of analysis; the Patchstack advisory is the primary confirmed intelligence source.
RemediationAI
Update the Enable Media Replace plugin to a version released after 4.2.1 once ShortPixel publishes a patched release; monitor the Patchstack advisory at https://patchstack.com/database/wordpress/plugin/enable-media-replace/vulnerability/wordpress-enable-media-replace-plugin-4-2-1-cross-site-scripting-xss-vulnerability?_s_id=cve for confirmation of the exact fixed version number, which is not independently confirmed in available data. As a compensating control prior to patch availability, restrict the ability to use media replacement functionality to the minimum necessary user roles and audit existing editor and contributor accounts for signs of unauthorized access or credential compromise. Disabling the Enable Media Replace plugin entirely eliminates the attack surface with the trade-off of losing in-place media replacement capability, requiring manual delete-and-reupload workflows instead. A WordPress-layer WAF such as Patchstack Shield or Wordfence with XSS ruleset enabled may partially block exploitation attempts but is not a substitute for patching.
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
The affected component is the ShortPixel Enable Media Replace WordPress plugin (CPE: cpe:2.3:a:shortpixel:enable_media_replace:*:*:*:*:*:*:*:*), which extends the WordPress Media Library by allowing replacement of existing media files in-place without the need to delete and re-upload. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation) in its Stored XSS variant: attacker-controlled input passed through the media replacement feature is persisted to the WordPress database without adequate sanitization or output encoding, and later rendered into HTML pages without escaping. The CVSS vector's Scope:Changed metric confirms the injected script executes in the victim's browser security context rather than the server's, enabling cross-context attacks including session token theft and DOM manipulation against authenticated WordPress users who load the affected content.
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:H/UI:R/S:C/C:L/I:L/A:L
PR:H reflects editor-level authentication required to inject the payload; A:N applied because stored XSS does not disrupt service availability.
Primary rating from Vendor (Patchstack).
CVSS VectorVendor: Patchstack
DescriptionCVE.org
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in ShortPixel Enable Media Replace allows Stored XSS.
This issue affects Enable Media Replace: from n/a through 4.2.1.
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
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
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
PHP object injection in the WordPress plugin Enable Media Replace through version 4.2.2 gives authenticated Subscriber-l
The Enable Media Replace plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the SHORTPIXEL_DEBUG p
Authorization bypass in the WordPress plugin Enable Media Replace (all versions up to and including 4.2.2) allows an aut
EUVD-2026-41096
GHSA-c8m2-cj6f-v5p6
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB