CVE-2025-31081 HIGH

CVE-2025-31081: WordPress Enable Media Replace plugin <= 4.1.5 - Reflected Cross Site Scripting (XSS) vulnerability

Vendor Shortpixel
Product Enable Media Replace
Weakness CWE-79 · XSS
Published April 1, 2025
Last update April 28, 2026

CVSS base score

7.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

Enable Media Replace versions 4.1.5 and earlier contain a cross-site scripting (XSS) vulnerability. An attacker can inject malicious scripts that execute in the browsers of site administrators or other users who interact with the plugin. The vulnerability requires user interaction—typically clicking a malicious link or visiting a compromised page—and can affect other parts of the WordPress site due to scope change.

What an attacker can do

03Attacker Capabilities

Inject malicious JavaScript that runs in users' browsers when they interact with the plugin.

Potential impact on your site

04Site Impact

Attackers can steal admin session cookies, modify site content, or redirect users to phishing pages.

Conditions required to exploit

05Prerequisites

No authentication required. Victim must click a link or visit a page controlled by the attacker.

Key dates

06Disclosure timeline

April 1, 2025 CVE published
April 28, 2026 Record updated