---
id: CVE-2025-9496
title: >-
  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…
summary: >-
  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…
severity: medium
cvss: 6.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
published: '2025-10-11'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T13:10:00.200'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-9496'
references:
  - url: >-
      https://plugins.trac.wordpress.org/browser/enable-media-replace/tags/4.1.6/classes/emr-plugin.php#L645
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3371681%40enable-media-replace&new=3371681%40enable-media-replace&sfp_email=&sfph_mail=
    label: security@wordfence.com
  - url: 'https://wordpress.org/plugins/enable-media-replace/'
    label: security@wordfence.com
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/07aafbe4-d2ac-4cc3-beb4-37e681ed5285?source=cve
    label: security@wordfence.com
tags:
  - nvd
epss: 0.00239
epssPercentile: 0.13732
ingestedAt: '2026-10-08T13:42:55.098Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
