Advisory

CVE-2026-130331: Path traversal in WP Statistics

CVSS 7.5 (CVE record)Published Nov 28, 2026Last verified Nov 30, 2026

An authenticated attacker with subscriber-level privileges can exploit a local file inclusion vulnerability in the WP Statistics plugin for WordPress.

Exploited in the wild
Not reported
Installs not updated
Unknown
Affected and fixed versions
ComponentAffectedFixed in
WP Statistics – Simple, privacy-friendly Google Analytics alternative (plugin)14.16.19 and earlier4.16.20
Run a free scan of your site

The free scan checks what is visible from outside your site. It does not log in, and it cannot confirm on its own whether this specific issue is present.

Summary

A Local File Inclusion vulnerability affects the WP Statistics – Simple, privacy-friendly Google Analytics alternative plugin for WordPress. This flaw allows authenticated attackers to execute arbitrary PHP code on affected servers. No fixed version is currently listed, and there is no confirmation of active exploitation.

Affected and patched versions

  • WP Statistics – Simple, privacy-friendly Google Analytics alternative (plugin wp-statistics): affected 14.16.19 and earlier; fixed in 4.16.20

Is my site vulnerable?

To determine if your WordPress site is vulnerable, check the version of the WP Statistics – Simple, privacy-friendly Google Analytics alternative plugin installed. Access your WordPress administration dashboard, navigate to the "Plugins" section, and then select "Installed Plugins". Locate "WP Statistics" in the list. The version number is displayed next to the plugin name. If your installed version is 14.16.19 or earlier, your site is exposed to this vulnerability.

What an attacker actually does

An attacker exploits a Local File Inclusion (LFI) vulnerability within the WP Statistics plugin. This flaw exists in how the plugin handles the tab parameter. The plugin fails to properly validate or sanitize user-supplied input provided through this parameter. This allows an attacker to inject specific path sequences, such as ../ (dot-dot-slash) characters, or absolute paths. These sequences enable the attacker to access file system locations outside of the directories the plugin intends to use.

With the ability to manipulate file paths, an authenticated attacker can include and execute arbitrary .php files present on the server. This means any PHP code contained within those files can be run by the attacker. The operational impact of this vulnerability is significant, as it facilitates arbitrary PHP code execution on the target server. This is particularly dangerous when combined with other capabilities, such as the ability to upload files to the server. For example, an attacker might first upload a malicious PHP script, perhaps disguised as an image or another benign file type, and then use the LFI vulnerability to execute that uploaded script. This could lead to a complete compromise of the server.

The exploitability of this vulnerability is influenced by the "Minimum Role to View Statistics" setting within the WP Statistics plugin. If this setting is configured to a low-privilege role, such as "Subscriber", any registered user with subscriber-level access or higher can exploit this flaw. In such cases, the vulnerability effectively grants unauthenticated-equivalent access to any registered user, broadening the attack surface. If the setting remains at its default, "Administrator", exposure is limited to higher-privileged accounts. An attacker with the necessary authentication can upload a backdoor script and then execute it via the LFI flaw, potentially gaining full control over the server, bypassing access controls, and obtaining sensitive data.

How to detect a compromise

Detecting a compromise related to a Local File Inclusion vulnerability requires inspecting various components of your WordPress installation and server environment. Attackers leveraging this vulnerability aim to execute arbitrary PHP code, which often involves uploading malicious files or manipulating existing ones.

Begin by examining your server's access logs. Look for requests directed at your WordPress site that contain the tab parameter within the URL, especially if these requests include path traversal sequences like ../ or their URL-encoded equivalents (%2e%2e%2f). These patterns indicate attempts to access files outside the intended directory. For Apache servers, access logs are typically found at /var/log/apache2/access.log or /var/log/httpd/access_log. For Nginx, they are often at /var/log/nginx/access.log. A grep command can assist in this search; for example: grep -r "tab=.*\.php" /var/log/apache2/access.log This command searches for instances where the tab parameter is used to request a .php file.

Next, inspect your WordPress file system for suspicious files. Attackers often upload web shells or backdoor scripts to maintain access. Check directories that are typically writable by the web server, such as wp-content/uploads/, wp-content/plugins/wp-statistics/, or other plugin directories. Look for files with unusual names, double extensions (e.g., image.jpg.php), or files with recent modification dates that do not correspond to legitimate updates. Pay attention to .php files in unexpected locations.

Review your WordPress database for newly created or modified user accounts, especially those with elevated privileges. Attackers may create new administrative users to ensure persistent access. Also, check for unexpected changes in core WordPress options or plugin settings that could indicate malicious activity.

Monitor outbound network connections from your server. Compromised servers often attempt to connect to external command-and-control (C2) servers. Unusual connections to unknown IP addresses or domains could be an indicator of compromise.

Finally, use WP-CLI to verify the integrity of your WordPress installation and plugin versions. While WP-CLI cannot detect all compromises, it can help confirm plugin versions and identify unexpected files. To check the version of the WP Statistics plugin, use: wp plugin list --status=active --fields=name,version This command provides a quick way to confirm the version of active plugins. Regularly compare these versions against known vulnerable versions.

How to fix

As of the current information, a direct patch for CVE-2026-130331 is not available. Therefore, mitigation strategies are necessary to protect your WordPress site from this vulnerability.

Follow these numbered steps to address the risk:

  1. Disable or Uninstall the Plugin: The most direct way to eliminate the vulnerability is to disable or uninstall the WP Statistics – Simple, privacy-friendly Google Analytics alternative plugin. If the plugin's functionality is not essential, removing it will remove the attack vector.

  2. Restrict Access to WordPress Admin: Limit access to your WordPress administration area to trusted IP addresses only. This can be achieved through .htaccess rules or server-level firewall configurations. This measure reduces the pool of potential authenticated attackers.

  3. Adjust "Minimum Role to View Statistics" Setting: If you must keep the WP Statistics plugin active, navigate to the plugin's settings within your WordPress dashboard. Locate the "Minimum Role to View Statistics" option and set it to "Administrator". This action limits the exposure of the vulnerability to only higher-privileged accounts, making it more difficult for lower-privileged authenticated users (like Subscribers) to exploit the flaw.

  4. Implement a Web Application Firewall (WAF): Deploy a robust Web Application Firewall (WAF) in front of your WordPress site. A WAF can be configured to detect and block common attack patterns, including path traversal sequences (../ or %2e%2e%2f) in URL parameters like tab. This provides an additional layer of defense against exploitation attempts.

  5. Regularly Back Up Your Site: Maintain frequent and verified backups of your entire WordPress site, including files and the database. In the event of a compromise, a recent backup allows for a quicker recovery process.

  6. Monitor Server and Application Logs: Continuously monitor your server access logs, error logs, and WordPress activity logs for any unusual or suspicious activity, as detailed in the "How to detect a compromise" section. Early detection can limit the impact of an attack.

  7. Review User Permissions: Periodically review all user accounts on your WordPress site. Ensure that all users have the minimum necessary privileges required for their roles. Remove any unused or suspicious accounts.

Timeline

Date

Event

2026-11-26

Published

Sources

PowerSEC coverage
PowerSEC's vulnerability scan may not flag every affected version of this issue, and no PowerSEC firewall rule blocks it. Update to 4.16.20 or later to remove the vulnerability.
This record contains material that is subject to copyright Copyright 2012-2026 Defiant Inc. Copyright 1999-2026 The MITRE Corporation
Hacked? Talk to us