Description
The FormGent plugin for WordPress is vulnerable to unauthorized arbitrary file deletion due to a missing capability check on the /wp-json/formgent/responses/attachments REST API endpoint in all versions up to, and including, 1.9.2 This is due to the REST API route being registered without any authentication middleware in routes/rest/api.php. This makes it possible for unauthenticated attackers to delete arbitrary files within the formgent uploads directory. Additionally, on Linux servers where the wp-content/uploads/formgent directory does not yet exist (the default state after plugin installation), the path traversal protection can be bypassed, enabling deletion of arbitrary files including wp-config.php which can lead to complete site takeover via a fresh WordPress installation.
References7
- plugins.trac.wordpress.org/browser/formgent/tags/1.3.1/app/Http…
- plugins.trac.wordpress.org/browser/formgent/tags/1.3.1/routes/r…
- plugins.trac.wordpress.org/browser/formgent/trunk/app/Http/Cont…
- plugins.trac.wordpress.org/browser/formgent/trunk/routes/rest/a…
- plugins.trac.wordpress.org/changeset/3604540/formgent/trunk/app…
- plugins.trac.wordpress.org/changeset?old_path=%2Fformgent/tags/…
- www.wordfence.com/threat-intel/vulnerabilities/id/097a9d0f-fa38…
Metrics
- CVSS 3.1
-
9.1
CRITICAL
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H - EPSS — exploit probability
- 1% percentile: 60 · as of 13 November 2026
- CWE
- CWE-862
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.