What the vulnerability does
01Description
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.
Explanation of Vulnerability in Simple Terms
02Summary
Enable Media Replace versions up to 4.1.8 contain a cross-site scripting vulnerability that allows authenticated users to inject malicious scripts. The vulnerability has changed scope, meaning injected code can affect other users and site functionality beyond the plugin itself. An attacker with low-level WordPress access can craft malicious input that executes in other users' browsers when they interact with affected features.
What an attacker can do
03Attacker Capabilities
Inject JavaScript that runs in other users' browsers and affects site functionality.
Potential impact on your site
04Site Impact
Authenticated attackers can steal admin session tokens, deface content, or redirect users to malicious sites.
Conditions required to exploit
05Prerequisites
Attacker needs a low-privilege WordPress account (e.g., contributor or editor role).
Key dates
06Disclosure timeline
June 9, 2026
CVE published
June 9, 2026
Record updated