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.
Problem types
CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Product status
Any version
Timeline
| 2026-03-08: | Discovered |
| 2026-04-06: | Vendor Notified |
| 2026-06-08: | Disclosed |
Credits
Christofer Roth
References
www.wordfence.com/...-01ad-47b2-84e6-4f6ff78c02b6?source=cve
plugins.trac.wordpress.org/...oller/UploadViewController.php
plugins.trac.wordpress.org/...ce/tags/4.1.8/views/screen.php