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

CVE-2026-101924: NewStatPress WordPress Plugin XSS Vulnerability

CVE-2026-101924 is a stored XSS flaw in the NewStatPress WordPress plugin that enables unauthenticated attackers to inject malicious scripts. This post covers the technical details, affected versions, security impact, 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-101924 Overview

The NewStatPress plugin for WordPress contains a stored Cross-Site Scripting (XSS) vulnerability in versions up to and including 1.4.5. The flaw resides in the Last referrers meta box on the plugin's Overview admin page. The newstatpress_generate_overview_lastreferrers() function records visitor-supplied query strings into the statistics table and later concatenates the stored urlrequested value into a single-quoted href attribute after only FILTER_SANITIZE_URL processing. Because FILTER_SANITIZE_URL does not encode the apostrophe character, unauthenticated attackers can break out of the attribute and inject arbitrary scripts that execute when an administrator hovers the injected link on the Overview page [CWE-79].

Critical Impact

Unauthenticated attackers can inject persistent JavaScript that executes in an administrator's authenticated session, enabling account takeover, plugin manipulation, or further site compromise.

Affected Products

  • WordPress NewStatPress plugin versions up to and including 1.4.5
  • Deployments exposing the Overview admin page to privileged users
  • WordPress sites where the plugin is active and recording visitor referrers

Discovery Timeline

  • 2026-10-14 - CVE-2026-101924 published to NVD
  • 2026-10-14 - Last updated in NVD database

Technical Details for CVE-2026-101924

Vulnerability Analysis

The vulnerability is a stored XSS flaw in the NewStatPress WordPress plugin. The plugin logs visitor request data, including the raw query string, into its statistics table during normal page requests. When an administrator loads the plugin's Overview admin page, the newstatpress_generate_overview_lastreferrers() function reads the stored urlrequested field and embeds it inside an href attribute delimited by single quotes.

Before insertion into the attribute, the value is passed through PHP's FILTER_SANITIZE_URL filter. This filter removes characters that are not valid in a URL, but it preserves the apostrophe ('). An attacker who places an apostrophe in the request URI can therefore close the href attribute early and append arbitrary HTML attributes or <script> payloads.

Root Cause

The root cause is insufficient output escaping in newstatpress_generate_overview_lastreferrers(). The function relies on FILTER_SANITIZE_URL as both input sanitization and output encoding. WordPress provides context-aware escaping helpers such as esc_attr() and esc_url() that neutralize quote characters, but neither is applied before the stored value is rendered inside the single-quoted HTML attribute.

Attack Vector

An unauthenticated attacker crafts an HTTP request whose URI contains a payload that breaks out of the single-quoted href attribute. The plugin persists the referrer-style data in its statistics table. The payload executes when a logged-in administrator or other high-privileged user views the Overview page and hovers the injected link, at which point the browser renders the attacker-controlled markup in the WordPress admin origin.

No code example is reproduced here. See the Wordfence advisory and the plugin source references for technical specifics of the affected functions at includes/nsp-overview.php and newstatpress.php.

Detection Methods for CVE-2026-101924

Indicators of Compromise

  • Entries in the NewStatPress statistics table where urlrequested contains apostrophes, angle brackets, on*= event handlers, or javascript: URIs.
  • Unexpected administrator account creation, plugin installation, or option changes shortly after an administrator visited the NewStatPress Overview page.
  • Outbound requests from administrator browsers to attacker-controlled domains originating from the WordPress admin interface.

Detection Strategies

  • Query the plugin's statistics table for stored values containing characters commonly used in XSS payloads such as ', <, >, or script.
  • Review web server access logs for requests with suspicious query strings or URIs containing script fragments, especially from unauthenticated sources.
  • Monitor WordPress audit logs for administrative actions that correlate in time with access to the admin.php?page=newstatpress Overview page.

Monitoring Recommendations

  • Alert on new or modified administrator accounts and on changes to active plugins and themes.
  • Deploy a web application firewall rule to flag request URIs containing unescaped apostrophes in combination with HTML or script-like tokens.
  • Baseline normal referrer and URL patterns recorded by NewStatPress and alert on anomalous entries.

How to Mitigate CVE-2026-101924

Immediate Actions Required

  • Deactivate the NewStatPress plugin until a patched release is installed, especially on sites where administrators regularly access the Overview page.
  • Purge the NewStatPress statistics table of any records containing suspicious characters to prevent delayed execution against future administrator sessions.
  • Rotate credentials and review session tokens for any administrator who may have viewed the Overview page while a malicious entry was present.

Patch Information

At the time of publication, the NVD entry lists versions up to and including 1.4.5 as affected. Review the Wordfence Vulnerability Report and the plugin repository for the latest fixed release. The vulnerable code paths referenced by the advisory are in includes/nsp-overview.php, newstatpress.php line 1447, and newstatpress.php line 839.

Workarounds

  • Restrict access to the WordPress admin area with IP allowlists or VPN requirements to limit who can trigger the stored payload.
  • Deploy a web application firewall rule that strips or rejects apostrophes and script tokens from request URIs before they reach WordPress.
  • Replace NewStatPress with an alternative analytics plugin until a patched release is confirmed.
  • Apply a hotfix wrapping the urlrequested value in esc_attr() or esc_url() within newstatpress_generate_overview_lastreferrers() before rendering.

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.