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)
- Affected
- from 14.10 before 14.16.20
- Remediation
- Update to 14.16.20 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-98
- Usage
- Plugin High · Affected versions High among sites WPSec scans, 2026-11-21
- Attack surface
- WP Statistics on WPSec AttackSurface
- Fix released
- Published
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/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON or Markdown · All advisories: JSON, RSS