# WP Statistics <= 14.16.19 - Authenticated (Custom+) Local File Inclusion via 'tab' Parameter

- **ID:** WPSEC-2026-3661
- **Plugin:** WP Statistics – Simple, privacy-friendly Google Analytics alternative (`wp-statistics`), https://wordpress.org/plugins/wp-statistics/
- **Affected versions:** from 14.10 before 14.16.20
- **Fixed in:** 14.16.20 (Update to 14.16.20 or later.)
- **Severity:** High 7.5 (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H)
- **Weakness:** CWE-98
- **Usage among sites WPSec scans:** plugin High, affected versions High (as of 2026-11-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-statistics
- **Fix released:** 2026-11-20
- **Published:** 2026-11-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3661/

## Description

The WP Statistics plugin for WordPress is vulnerable to Local File Inclusion via the 'tab' parameter of the Page Insights and Referrals report pages in all versions up to, and including, 14.16.19. This is due to the tab value not being checked against the list of allowed tabs and being concatenated into the view path passed to View::load(), which includes the file without checking that it stays inside the plugin's views directory. This makes it possible for authenticated attackers with access to the statistics pages (administrators by default, or any lower role, such as Contributor, that the site has allowed through the 'Minimum Role to View Statistics' setting) to include and execute arbitrary .php files on the server via '../' sequences, 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 files can be uploaded and included.

## References

- https://wpsec.com/vuln/WPSEC-2026-3661/
- https://plugins.svn.wordpress.org/wp-statistics/tags/14.16.20/
- https://wordpress.org/plugins/wp-statistics/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3661/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
