Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-12038 Overview
CVE-2025-12038 is a broken access control vulnerability in the Folderly plugin for WordPress. The flaw affects all plugin versions up to and including 0.3. The /wp-json/folderly/v1/config/clear-all-data REST API endpoint fails to perform an adequate capability check before executing destructive actions. Authenticated users holding Author-level permissions or higher can invoke the endpoint and clear plugin data such as terms and categories. The weakness maps to CWE-863: Incorrect Authorization.
Critical Impact
Authenticated attackers with Author-level access can wipe terms, categories, and other plugin-managed data via an unprotected REST endpoint, disrupting site content organization.
Affected Products
- Folderly plugin for WordPress — all versions through 0.3
- WordPress sites allowing Author-level or higher registration
- Sites exposing the Folderly REST API routes under /wp-json/folderly/v1/
Discovery Timeline
- 2025-11-01 - CVE-2025-12038 published to the National Vulnerability Database
- 2026-06-17 - Last updated in the NVD database
Technical Details for CVE-2025-12038
Vulnerability Analysis
The Folderly plugin registers a REST route at /wp-json/folderly/v1/config/clear-all-data. The route handler executes a bulk data reset but does not enforce an administrator-level capability check in its permission_callback. WordPress treats any authenticated user who passes the registered callback as authorized to execute the action.
An attacker with an Author account can send an HTTP request to the endpoint and trigger the data clearing routine. The action removes plugin-managed taxonomy data, including terms and categories used to organize site content. The vulnerability only impacts integrity; confidentiality and availability of the underlying WordPress installation are not directly compromised.
The upstream fix is documented in the WordPress Plugin Changeset, which tightens the authorization check on the affected route.
Root Cause
The root cause is an insufficient permission_callback on the REST route registration. The handler should verify a capability such as manage_options, but instead permits any logged-in user to proceed. This is a classic authorization failure categorized under CWE-863.
Attack Vector
Exploitation requires network access to the WordPress REST API and valid credentials for an account with Author privileges or higher. The attacker authenticates against WordPress, obtains a session cookie or application password, and issues a POST request to the vulnerable endpoint. No user interaction is required. The Wordfence Vulnerability Report describes the exposure mechanics in more detail.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2025-12038
Indicators of Compromise
- Unexpected POST requests to /wp-json/folderly/v1/config/clear-all-data in web server access logs
- Sudden loss of taxonomy terms, categories, or folder structures managed by the Folderly plugin
- REST API activity from Author-level accounts outside of their normal publishing workflow
Detection Strategies
- Audit the installed version of the Folderly plugin and flag any instance at version 0.3 or earlier
- Hunt web and application logs for requests to Folderly REST routes paired with non-administrator user IDs
- Correlate taxonomy change events in the WordPress database with the originating authenticated user and timestamp
Monitoring Recommendations
- Enable REST API request logging on the WordPress host and forward it to a central SIEM
- Alert on any 2xx response to clear-all-data endpoints across managed WordPress fleets
- Track Author-level and Contributor-level accounts that invoke administrative REST routes
How to Mitigate CVE-2025-12038
Immediate Actions Required
- Update the Folderly plugin to the version released after changeset 3384176, which adds the capability check
- Review all WordPress user accounts and remove unused Author-level or higher privileges
- Rotate credentials and application passwords for any account suspected of unauthorized API use
Patch Information
The vendor addressed the issue in the Folderly plugin repository via changeset 3384176. The patch enforces an authorization check on the clear-all-data REST route so that only privileged administrators can invoke it. Site operators should upgrade to the first released version containing this changeset.
Workarounds
- Disable or uninstall the Folderly plugin until the patched release is applied
- Restrict access to /wp-json/folderly/v1/ at the web server or WAF layer to administrator IP ranges
- Temporarily demote non-essential Author accounts to Contributor or Subscriber roles to limit exploitability
# Example NGINX restriction for the vulnerable REST route
location ~ ^/wp-json/folderly/v1/config/clear-all-data {
allow 203.0.113.0/24; # trusted admin network
deny all;
return 403;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

