Description
The Enable Media Replace plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's file_modified shortcode in all versions up to, and including, 4.1.6 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Published: 2025-10-11
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting
Action: Patch Plugin
AI Analysis

Impact

The Enable Media Replace plugin for WordPress contains a stored cross‑site scripting vulnerability in the file_modified shortcode. The shortcode’s attributes are not sanitized or escaped, which allows an attacker who is authenticated with contributor-level permissions or higher to insert arbitrary JavaScript into posts or pages. When a page containing the malicious shortcode is viewed, the injected script executes in the context of the browsed page.

Affected Systems

Shortpixel’s Enable Media Replace plugin, any WordPress site that has the plugin installed up to and including version 4.1.6, is vulnerable. An authenticated user with a contributor role or greater can exploit the flaw by editing or creating content that contains the file_modified shortcode.

Risk and Exploitability

CVE‑2025‑9496 has a CVSS base score of 6.4, indicating a moderate severity. The EPSS score is below 1 %, suggesting a low likelihood of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires only contributor‑level authentication, a role commonly granted to many site users, and the malicious payload is stored permanently in the content until removed. When another user views the affected page, the injected JavaScript runs in the victim’s browser.

Generated by OpenCVE AI on April 22, 2026 at 22:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Enable Media Replace plugin to the latest version (≥ 4.1.7).
  • If an upgrade cannot be performed immediately, modify the plugin to restrict use of the file_modified shortcode to administrators only or disable it for all non‑admin roles.
  • Remove all instances of the injected shortcode from posts and pages before the content is made available to other users.

Generated by OpenCVE AI on April 22, 2026 at 22:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 20 Oct 2025 16:30:00 +0000

Type Values Removed Values Added
First Time appeared Shortpixel
Shortpixel enable Media Replace
Wordpress
Wordpress wordpress
Vendors & Products Shortpixel
Shortpixel enable Media Replace
Wordpress
Wordpress wordpress

Tue, 14 Oct 2025 15:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 11 Oct 2025 07:30:00 +0000

Type Values Removed Values Added
Description The Enable Media Replace plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's file_modified shortcode in all versions up to, and including, 4.1.6 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Title Enable Media Replace <= 4.1.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via file_modified Shortcode
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

Shortpixel Enable Media Replace
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T16:34:02.835Z

Reserved: 2025-08-26T17:51:54.044Z

Link: CVE-2025-9496

cve-icon Vulnrichment

Updated: 2025-10-14T13:41:24.850Z

cve-icon NVD

Status : Deferred

Published: 2025-10-11T08:15:32.543

Modified: 2026-04-15T00:35:42.020

Link: CVE-2025-9496

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-22T22:15:26Z

Weaknesses