Skip to main content

Enable Media Replace EUVDEUVD-2026-41096

| CVE-2026-57722 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-01 Patchstack GHSA-c8m2-cj6f-v5p6
5.9
CVSS 3.1 · Vendor: Patchstack
View

Attack ChainAIDerived

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

  1. Recon
    Obtain WordPress editor-level credentials
  2. Delivery
    Access Media Library Replace Media feature
  3. Exploit
    Inject stored XSS payload into unvalidated input field
  4. Install
    Payload persisted in WordPress database
  5. C2
    Administrator loads affected content in browser
  6. Execute
    Injected script executes in admin browser context
  7. Impact
    Session 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

Enable Media Replace n/a ≤4.2.1

Affected Packages

euvd enable_media_replace no fix

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

Vendor (Patchstack) PRIMARY 5.9 MEDIUM
AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L
vuln.today AI 4.8 MEDIUM

PR:H reflects editor-level authentication required to inject the payload; A:N applied because stored XSS does not disrupt service availability.

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

Primary rating from Vendor (Patchstack).

CVSS VectorVendor: Patchstack

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

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

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Medium
popular WordPress media plugin, tens of thousands of active installations
Data Quality
6 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

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