CVE-2026-85655
The Enable Media Replace plugin for WordPress is vulnerable to …
The Enable Media Replace plugin for WordPress is vulnerable to authorization bypass in all versions up to, and including, 4.2.2. This is due to the plugin not properly verifying that a user is authorized to perform an action. This makes it possible for authenticated attackers, with author-level access and above, to modify the post_content of any published post referencing the replaced media — including Administrator-owned posts — making changes immediately visible to unauthenticated visitors. The doReplaceQuery() method performs a database-wide search-and-replace across all posts containing the old media URL without any per-post capability check, meaning a single Author-triggered request can silently overwrite a large number of posts that WordPress's standard admin UI and REST API would otherwise forbid that user from editing.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/short-pixel-optimizer/enable-media-replace/releases/tag/v4.2.3
- plugins.trac.wordpress.org/browser/enable-media-replace/tags/4.1.9/build/shortpixel/replac
- plugins.trac.wordpress.org/browser/enable-media-replace/tags/4.1.9/classes/Controller/Repl
- plugins.trac.wordpress.org/browser/enable-media-replace/tags/4.1.9/classes/ViewController/
- plugins.trac.wordpress.org/browser/enable-media-replace/tags/4.1.9/classes/ViewController/
- plugins.trac.wordpress.org/browser/enable-media-replace/tags/4.2.2/build/shortpixel/replac
- plugins.trac.wordpress.org/browser/enable-media-replace/tags/4.2.2/classes/Controller/Repl
- plugins.trac.wordpress.org/browser/enable-media-replace/tags/4.2.2/classes/ViewController/
- nvd.nist.gov/vuln/detail/CVE-2026-85655
- cve.org/CVERecord?id=CVE-2026-85655
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.