CVE-2026-130331 in WP Statistics Plugininfo

Summary

by MITRE • 11/26/2026

The WP Statistics – Simple, privacy-friendly Google Analytics alternative plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 14.16.19 via the 'tab' parameter parameter. This makes it possible for authenticated attackers, with subscriber-level access and above, to include and execute arbitrary .php files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where .php file types can be uploaded and included. The exploitability of this vulnerability depends on the Minimum Role to View Statistics setting; when set to a low-privilege role such as Subscriber (read capability), unauthenticated-equivalent access is effectively granted to any registered user, while the default Administrator setting limits exposure to higher-privileged accounts.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/26/2026

The WP Statistics plugin for WordPress contains a Local File Inclusion vulnerability affecting all versions up through 14.16.19. This flaw resides within the handling of the tab parameter, which fails to properly validate or sanitize user-supplied input before using it in file inclusion operations. As classified under CWE-22 and aligned with MITRE ATT&CK technique T1059.007 for command and script interpretation via local files, this vulnerability allows an attacker to manipulate the application's behavior by injecting relative or absolute path sequences into the parameter value. The core technical issue stems from insufficient input validation mechanisms that permit directory traversal characters such as dot-dot-slash to be processed without adequate restriction, thereby enabling access to file system locations outside of intended directories.

The operational impact of this vulnerability is significant because it facilitates arbitrary PHP code execution on the target server when combined with specific configuration settings or upload capabilities. An authenticated attacker possessing subscriber-level privileges and above can exploit this flaw by crafting a request that includes maliciously crafted paths in the tab parameter. If the web server allows for the uploading of .php files, which is possible depending on site-specific media library configurations, an attacker could first upload a backdoor script to a known location within the WordPress directory structure. Subsequently, using the Local File Inclusion flaw, they can instruct the application to include and execute this uploaded file. This sequence effectively grants the attacker full control over the server environment, leading to complete compromise of the underlying system integrity.

The exploitability profile is heavily influenced by the Minimum Role to View Statistics setting configured within the plugin. When this setting is adjusted to allow subscribers or other low-privilege roles to view statistics, it inadvertently creates an unauthenticated-equivalent access vector for any registered user account on the site. This means that even users with minimal intended privileges can trigger the vulnerability without needing elevated administrative rights. In contrast, if the default Administrator-level restriction remains in place, exposure is limited to higher-privileged accounts who typically have more stringent oversight and fewer opportunities for unauthorized file uploads. However, given that many sites may lower these restrictions for analytics purposes or due to misconfiguration, the risk surface remains broad across various deployment scenarios.

Mitigation strategies must address both immediate remediation and long-term security posture improvements. The primary defense is to upgrade the WP Statistics plugin to a version later than 14.16.19 where this input validation flaw has been corrected by the developers. Until an update can be applied, administrators should ensure that the Minimum Role to View Statistics setting remains at its most restrictive level, ideally Administrator only, to limit potential attackers to high-privilege accounts who are harder to compromise initially. Additionally, server-side hardening measures such as disabling PHP execution in upload directories via web server configuration directives like Apache's php_flag or Nginx location blocks can prevent the successful exploitation of uploaded files even if an attacker manages to place them on the disk. Regular auditing of installed plugins and adherence to least-privilege principles for user roles further reduces the attack surface available to potential adversaries seeking to leverage this type of inclusion vulnerability.

Responsible

Wordfence

Reservation

11/16/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!