Enable Media Replace <= 4.1.8 - Authenticated (Author+) Stored Cross-Site Scripting via 'location_dir' Parameter

6.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2026-5714
CVSS 6.4 (Medium)
Publicly Published June 8, 2026
Last Updated June 9, 2026
Researcher tjoffe

Description

The Enable Media Replace plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the ‘location_dir’ parameter in all versions up to, and including, 4.1.8 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Author-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.9, or a newer patched version
Affected Version
  • <= 4.1.8
Patched Version
  • 4.1.9

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.7 - Improper Authorization to Authenticated (Author+) Arbitrary Attachment Change via Background Replace CVE-2026-2732 5.4 Or Benit March 3, 2026
3 Enable Media Replace <= 4.1.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via file_modified Shortcode CVE-2025-9496 6.4 Muhammad Yudha - DJ October 10, 2025
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