Skip to main content
Vulnerability Database/CVE-2026-100153

CVE-2026-100153: NewStatPress WordPress Plugin XSS Flaw

CVE-2026-100153 is a stored XSS vulnerability in NewStatPress WordPress plugin allowing unauthenticated attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-100153 Overview

The NewStatPress plugin for WordPress contains a stored Cross-Site Scripting (XSS) vulnerability affecting all versions up to and including 1.4.5. The flaw resides in how the plugin processes the QUERY_STRING and REQUEST_URI server variables, which are logged without sufficient input sanitization or output escaping [CWE-79]. Unauthenticated attackers can inject arbitrary web scripts that execute when any user views a page displaying the plugin's top-pages ranking. Exploitation requires that a site administrator has placed the [NewStatPress type="Top Pages"] shortcode on a publicly viewable page, and that the attacker's crafted URL accumulates enough traffic to appear in the top-N list.

Critical Impact

Unauthenticated attackers can inject persistent JavaScript that executes in the browsers of visitors and administrators viewing the top-pages shortcode output.

Affected Products

  • NewStatPress plugin for WordPress — all versions up to and including 1.4.5
  • WordPress sites rendering the [NewStatPress type="Top Pages"] shortcode on public pages
  • Any WordPress deployment with the vulnerable plugin active and tracking enabled

Discovery Timeline

  • 2026-10-14 - CVE-2026-100153 published to the National Vulnerability Database
  • 2026-10-14 - Last updated in NVD database

Technical Details for CVE-2026-100153

Vulnerability Analysis

NewStatPress is a visitor-statistics plugin that records request metadata, including the raw query string and request URI, into its internal database. The plugin fails to sanitize this input on storage and does not escape the stored values when rendering the Top Pages ranking through its shortcode. As a result, any script payload embedded in a URL path or query string is persisted and later reflected to visitors as HTML.

The vulnerability becomes exploitable only when an administrator exposes the ranking via [NewStatPress type="Top Pages"] on a publicly reachable page. Because the output is driven by hit counts, attackers must drive sufficient requests to their crafted URL to push it into the displayed top-N results. Once visible, the payload fires in the context of every subsequent page view.

Root Cause

The plugin captures $_SERVER['QUERY_STRING'] and $_SERVER['REQUEST_URI'] and persists them without applying WordPress sanitization helpers such as sanitize_text_field() or esc_url_raw(). When the shortcode renders the Top Pages list, the stored values are emitted into the HTML response without esc_html() or esc_attr() escaping. The relevant logic is visible in the NewStatPress nsp-core.php (line 876) and newstatpress.php (lines 839 and 1453).

Attack Vector

An unauthenticated remote attacker issues HTTP requests to the target site with JavaScript embedded in the URL path or query component. The plugin logs each request. Through repeated requests or distributed traffic, the attacker inflates the hit counter so the malicious URL ranks within the Top Pages list. When any visitor or logged-in administrator loads the page containing the shortcode, the browser renders the attacker-controlled markup and executes the script in the site's origin.

No authentication or user interaction is required to inject the payload. Successful exploitation can be used for session hijacking, administrator account takeover via actions performed in-browser, redirection to malicious sites, or defacement. Technical details are documented in the Wordfence Vulnerability Report.

Detection Methods for CVE-2026-100153

Indicators of Compromise

  • Access log entries containing URL-encoded <script>, onerror=, onload=, or javascript: payloads in request paths or query strings
  • Unusual repeated requests from a small set of source IPs targeting non-existent URLs with suspicious characters
  • Entries in the NewStatPress database tables (for example, wp_statpress) whose urlrequested or search columns contain HTML tags or script fragments
  • Administrator session anomalies or unexpected account changes following views of pages hosting the Top Pages shortcode

Detection Strategies

  • Query the NewStatPress tables for stored rows containing <, >, script, or on\w+= patterns in URL and referrer columns
  • Inspect pages rendering [NewStatPress type="Top Pages"] and verify whether listed entries contain HTML or JavaScript rather than legitimate URLs
  • Review web application firewall logs for inbound requests whose URIs contain script-like tokens targeting the WordPress site

Monitoring Recommendations

  • Alert on WordPress plugin inventory changes and on sites running NewStatPress versions <= 1.4.5
  • Monitor outbound requests from browsers of administrators to unexpected domains after visiting statistics pages
  • Centralize WordPress access logs and apply detections for XSS payload signatures in request paths and query strings

How to Mitigate CVE-2026-100153

Immediate Actions Required

  • Remove or comment out any [NewStatPress type="Top Pages"] shortcode from publicly accessible pages until a patched version is installed
  • Deactivate the NewStatPress plugin on sites where the shortcode cannot be removed
  • Purge stored statistics rows containing script payloads from the plugin's database tables
  • Rotate administrator session cookies and reset credentials for users who may have viewed a compromised Top Pages listing

Patch Information

At the time of publication, the NVD entry lists all versions through 1.4.5 as affected and does not reference a fixed release. Monitor the WordPress plugin repository for NewStatPress and the Wordfence advisory for an updated version that applies sanitize_text_field() on storage and esc_html()/esc_url() on output.

Workarounds

  • Deploy a web application firewall rule to block request URIs and query strings containing HTML tags or javascript: schemes before they reach WordPress
  • Enforce a strict Content Security Policy on the WordPress site to prevent inline script execution on pages that render third-party plugin output
  • Restrict access to pages hosting the Top Pages shortcode to authenticated users while a fix is pending
  • Replace the Top Pages shortcode with a static curated list until the plugin is patched
bash
# Example WordPress WP-CLI commands to deactivate the vulnerable plugin
# and remove stored script payloads from the NewStatPress table
wp plugin deactivate newstatpress
wp db query "DELETE FROM wp_statpress WHERE urlrequested REGEXP '<|script|on[a-z]+=' OR search REGEXP '<|script|on[a-z]+='"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.