Enable Media Replace <= 4.1.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via file_modified Shortcode

6.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2025-9496
CVSS 6.4 (Medium)
Publicly Published October 10, 2025
Last Updated October 11, 2025
Researcher Muhammad Yudha - DJ

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.

Learn more about Cross-Site Scripting vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Enable Media Replace

Software Type Plugin
Software Slug enable-media-replace (view on wordpress.org)
Patched? Yes
Remediation Update to version 4.1.7, or a newer patched version
Affected Version
  • <= 4.1.6
Patched Version
  • 4.1.7

Recent vulnerabilities in Enable Media Replace

# Title CVE ID CVSS Researchers Date
1 Enable Media Replace <= 4.2.1 - Authenticated (Editor+) Stored Cross-Site Scripting CVE-2026-57722 4.4 Ananda Dhakal July 1, 2026
2 Enable Media Replace <= 4.1.8 - Authenticated (Author+) Stored Cross-Site Scripting via 'location_dir' Parameter CVE-2026-5714 6.4 tjoffe June 8, 2026
3 Enable Media Replace <= 4.1.7 - Improper Authorization to Authenticated (Author+) Arbitrary Attachment Change via Background Replace CVE-2026-2732 5.4 Or Benit March 3, 2026
4 Enable Media Replace <= 4.1.5 - Reflected Cross-Site Scripting CVE-2025-31081 6.1 João Pedro Soares de Alcântara April 1, 2025
5 Enable Media Replace <= 4.1.4 - Reflected Cross-Site Scripting CVE-2023-6737 4.7 Nex Team December 18, 2023
6 Enable Media Replace <= 4.1.2 - Authenticated(Author+) PHP Object Injection CVE-2023-4643 6.6 Jonatas Souza Villa Flor September 14, 2023
7 Enable Media Replace <= 4.0.1 - Authenticated (Author+) Arbitrary File Upload CVE-2023-0255 8.8 dc11 January 17, 2023
8 Enable Media Replace <= 3.6.3 - Authenticated (Administrator+) Path Traversal CVE-2022-2554 6.8 Raad Haddad September 14, 2022

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation