Description
The UsersWP plugin for WordPress is vulnerable to Arbitrary File Deletion in versions up to, and including, 1.2.65. This is due to insufficient validation of file-field values in the UsersWP_Validation::validate_fields() function (which falls through to sanitize_text_field() for fields of type 'file', leaving directory-traversal sequences intact) combined with the UsersWP_Forms::upload_file_remove() AJAX handler building the deletion target from the uploads basedir concatenated with the attacker-controlled metadata value without any realpath canonicalization or uploads-directory boundary check before calling unlink(). This makes it possible for authenticated attackers, with Subscriber-level access and above, to delete arbitrary files on the affected site's server, including wp-config.
References8
- github.com/AyeCode/userswp/commit/ddb17ad30ff3384cda85c5f372db3…
- plugins.trac.wordpress.org/browser/userswp/tags/1.2.65/includes…
- plugins.trac.wordpress.org/browser/userswp/tags/1.2.65/includes…
- plugins.trac.wordpress.org/browser/userswp/tags/1.2.65/includes…
- plugins.trac.wordpress.org/browser/userswp/tags/1.2.65/includes…
- plugins.trac.wordpress.org/browser/userswp/tags/1.2.65/includes…
- plugins.trac.wordpress.org/changeset/3590340/userswp
- www.wordfence.com/threat-intel/vulnerabilities/id/b6cf6390-480f…
Metrics
- CVSS 3.1
-
8.8
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 1% percentile: 53 · as of 15 November 2026
- CWE
- CWE-22
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.