Skip to content
Laskyr

Plugins · enable-media-replace · data as of 2026-11-01

Is Enable Media Replace safe? Known vulnerabilities and latest version

No known unpatched vulnerabilities in the latest version (4.2.3)

As of 2026-11-01. 12 issues are on record for older versions; version 4.2.3 or newer fixes all of them that state a fix.

Latest version
4.2.3
Last updated
2026-10-26
Active installs
600,000+
Known issues on record
12
Unpatched in latest
0
Tested up to WP
7.1.4 · PHP 5.6+

Easily replace any attached image/file by simply uploading a new file in the Media Library edit view - a real time saver! — by ShortPixel

What to do

  1. Update to the latest version (4.2.3). Anything older than 4.2.3 has at least one known issue listed below. Dashboard → Updates, or Plugins → “update now”.
  2. If you cannot update right away, deactivate it until you can.
  3. Turn on auto-updates for it: Plugins → “Enable auto-updates” on its row.
  4. If you ran a vulnerable version and something looks off (spam pages, strange admins, redirects), run the free scan.

With WP-CLI: wp plugin get enable-media-replace --field=version shows what you run; wp plugin update enable-media-replace updates it.

Check your version

Known vulnerabilities

12 on record, newest first. “Affected” is the version range the source gives; “fixed in” is the version the source names, or (marked *) the first wordpress.org release after the last affected version.

high 8.8 CVE-2026-73186 · published 2026-10-30

PHP object injection in Enable Media Replace (4.2.2 and older)

Affected
4.2.2 and older
Fixed in
4.2.3
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by Patchstack
Details from the advisory

Subscriber PHP Object Injection in Enable Media Replace <= 4.2.2 versions.

NVD CVE-2026-73186Patchstack advisory

high 7.5 CVE-2026-114422 · published 2026-10-30

PHP object injection in Enable Media Replace (4.1.4 up to (not including) 4.2.3)

Affected
4.1.4 up to (not including) 4.2.3
Fixed in
4.2.3
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by CISA ADP
Details from the advisory

The Enable Media Replace WordPress plugin before 4.2.3 does not restrict the classes allowed when deserializing stored metadata during its media replace-and-update-links routine, allowing unauthenticated users to inject a PHP object that is instantiated when a user with upload access performs a routine media replacement, resulting in PHP Object Injection and local file inclusion of existing PHP/HTML files, which can be escalated to remote code execution where an attacker-influenced PHP or HTML file is present on the server. This is a regression of CVE-2023-4643, which was fixed in 4.1.3 and reintroduced in 4.1.4.

NVD CVE-2026-114422WPScan advisory

medium 4.3 CVE-2026-85655 · published 2026-10-28

Missing authorization check in Enable Media Replace (4.2.2 and older)

Affected
4.2.2 and older
Fixed in
4.2.3 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

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.

NVD CVE-2026-85655Wordfence advisorygithub.comPlugin source

medium 5.9 CVE-2026-57722 · published 2026-07-01

Stored cross-site scripting (XSS) in Enable Media Replace (4.2.1 and older)

Affected
4.2.1 and older
Fixed in
4.2.2
Access needed (per CVSS)
Needs an admin-level account; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by Patchstack
Details from the advisory

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in ShortPixel Enable Media Replace allows Stored XSS. This issue affects Enable Media Replace: from n/a through 4.2.1.

NVD CVE-2026-57722Patchstack advisory

medium 6.4 CVE-2026-5714 · published 2026-06-09

Stored cross-site scripting (XSS) in Enable Media Replace (4.1.8 and older)

Affected
4.1.8 and older
Fixed in
4.1.9 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

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.

NVD CVE-2026-5714Wordfence advisoryPlugin source

medium 5.4 CVE-2026-2732 · published 2026-03-04

Missing authorization check in Enable Media Replace (4.1.7 and older)

Affected
4.1.7 and older
Fixed in
4.1.8 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

The Enable Media Replace plugin for WordPress is vulnerable to unauthorized modification of data due to an improper capability check on the 'RemoveBackGroundViewController::load' function in all versions up to, and including, 4.1.7. This makes it possible for authenticated attackers, with Author-level access and above, to replace any attachment with a removed background attachment.

NVD CVE-2026-2732Wordfence advisoryCode change (fix)github.comPlugin source

medium 6.4 CVE-2025-9496 · published 2025-10-11

Stored cross-site scripting (XSS) in Enable Media Replace (4.1.6 and older)

Affected
4.1.6 and older
Fixed in
4.1.7 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

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.

NVD CVE-2025-9496Wordfence advisoryCode change (fix)wordpress.orgPlugin source

high 7.1 CVE-2025-31081 · published 2025-04-01

Reflected cross-site scripting (XSS) in Enable Media Replace (4.1.5 and older)

Affected
4.1.5 and older
Fixed in
4.1.6
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by Patchstack
Details from the advisory

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in ShortPixel Enable Media Replace enable-media-replace allows Reflected XSS.This issue affects Enable Media Replace: from n/a through <= 4.1.5.

NVD CVE-2025-31081Patchstack advisory

medium 6.1 CVE-2023-6737 · published 2024-01-11

Reflected cross-site scripting (XSS) in Enable Media Replace (4.1.4 and older)

Affected
4.1.4 and older
Fixed in
4.1.5 *
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The Enable Media Replace plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the SHORTPIXEL_DEBUG parameter in all versions up to, and including, 4.1.4 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link. Exploiting this vulnerability requires the attacker to know the ID of an attachment uploaded by the user they are attacking.

NVD CVE-2023-6737Wordfence advisoryCode change (fix)

high 8.8 CVE-2023-4643 · published 2023-10-16

PHP object injection in Enable Media Replace (older than 4.1.3)

Affected
older than 4.1.3
Fixed in
4.1.3
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The Enable Media Replace WordPress plugin before 4.1.3 unserializes user input via the Remove Background feature, which could allow Author+ users to perform PHP Object Injection when a suitable gadget is present on the blog

NVD CVE-2023-4643WPScan advisory

high 8.8 CVE-2023-0255 · published 2023-02-13

Arbitrary file upload in Enable Media Replace (older than 4.0.2)

Affected
older than 4.0.2
Fixed in
4.0.2
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The Enable Media Replace WordPress plugin before 4.0.2 does not prevent authors from uploading arbitrary files to the site, which may allow them to upload PHP shells on affected sites.

NVD CVE-2023-0255WPScan advisory

medium 4.9 CVE-2022-2554 · published 2022-10-10

Path traversal / file read in Enable Media Replace (older than 4.0.0)

Affected
older than 4.0.0
Fixed in
4.0.0
Access needed (per CVSS)
Needs an admin-level account
Range from
NVD analysis · score by NVD
Details from the advisory

The Enable Media Replace WordPress plugin before 4.0.0 does not ensure that renamed files are moved to the Upload folder, which could allow high privilege users such as admin to move them outside to the web root directory via a path traversal attack for example

NVD CVE-2022-2554WPScan advisory

Recent activity

Where this data comes from

Badge for your site or docs (states facts with a date, not a verdict):
Enable Media Replace vulnerability status badge
<a href="https://laskyr.com/plugins/enable-media-replace"><img src="https://laskyr.com/plugins/enable-media-replace/badge.svg" alt="Enable Media Replace vulnerability status"></a>

← Check another plugin · Free hacked-site scan

Site hacked? Get help now
Run free scan Fix it now ($499) Send a message

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit