CVE-2025-13747
Unknown Unknown - Not Provided
Stored XSS in NewStatPress WordPress Plugin Allows Script Injection

Publication date: 2025-12-12

Last updated on: 2026-04-08

Assigner: Wordfence

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 Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-12
Last Modified
2026-04-08
Generated
2026-05-07
AI Q&A
2025-12-12
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
wordpress newstatpress *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a Stored Cross-Site Scripting (XSS) issue in the NewStatPress WordPress plugin, affecting all versions up to 1.4.3. It occurs due to insufficient input sanitization and output escaping in the nsp_shortcode function, allowing authenticated users with contributor-level access or higher to inject malicious scripts into pages. These scripts execute whenever any user accesses the infected page.


How can this vulnerability impact me? :

An attacker with contributor-level access or higher can exploit this vulnerability to inject arbitrary scripts into web pages. This can lead to unauthorized actions such as stealing user credentials, session hijacking, defacement, or spreading malware to visitors of the affected site.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

The vulnerability allows authenticated attackers with contributor-level access to inject arbitrary web scripts that execute when users access the injected pages. This could lead to unauthorized access or manipulation of user data, potentially violating data protection requirements under standards like GDPR or HIPAA. However, specific impacts on compliance are not detailed in the provided resources. [1, 2]


How can this vulnerability be detected on my network or system? Can you suggest some commands?

Detection of this vulnerability involves identifying if the NewStatPress plugin version 1.4.3 or earlier is installed on your WordPress site and checking for suspicious stored scripts in pages generated by the plugin. Since the vulnerability is a Stored Cross-Site Scripting via the nsp_shortcode function, you can look for unusual script tags or encoded payloads in user-supplied shortcode attributes. Commands to detect this could include searching the WordPress database for suspicious script tags in the plugin's data tables (e.g., NSP_TABLENAME). For example, using MySQL commands: SELECT * FROM NSP_TABLENAME WHERE field LIKE '%<script>%'; or grep through exported content for script tags. Additionally, monitoring HTTP responses for injected scripts on pages using the plugin's shortcodes can help detect exploitation. However, no specific detection commands are provided in the resources. [2]


What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include updating the NewStatPress plugin to a version later than 1.4.3 where the vulnerability is fixed. If an update is not available, restrict contributor-level and above users from adding or editing shortcodes that use the vulnerable nsp_shortcode function. Additionally, implement input sanitization and output escaping on user-supplied attributes in the plugin code to prevent script injection. As a temporary measure, disable or remove the NewStatPress plugin to prevent exploitation until a patch is applied. [2]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart