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-2026-40805 Overview
CVE-2026-40805 is an arbitrary file deletion vulnerability in the PeepSo WordPress plugin affecting versions up to and including 9.0.5.4. An authenticated attacker with Subscriber-level privileges can delete arbitrary files on the WordPress server. The issue is tracked as a path traversal weakness [CWE-22] and carries a CVSS 3.1 base score of 7.7 with vector AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H. Deletion of files such as wp-config.php can force WordPress into setup mode, enabling site takeover scenarios. No public exploit is known at the time of publication, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
Critical Impact
Any authenticated Subscriber can delete arbitrary files on the server, potentially leading to full site compromise through forced reinstallation.
Affected Products
- PeepSo WordPress plugin versions <= 9.0.5.4
- WordPress installations exposing Subscriber-level registration
- Multi-site WordPress deployments running vulnerable PeepSo builds
Discovery Timeline
- 2026-10-10 - CVE-2026-40805 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-40805
Vulnerability Analysis
PeepSo is a social networking plugin for WordPress that provides community, profile, and media features. The vulnerable code path accepts a file reference from an authenticated request and passes it to a deletion routine without validating that the target resides within an expected directory. Because the plugin exposes the handler to any logged-in user, the lowest-privileged role (Subscriber) can trigger the deletion. The scope change (S:C) in the CVSS vector reflects that file deletion can affect resources outside the plugin's security boundary, including core WordPress files. Removing wp-config.php resets WordPress to its installation state, allowing an attacker to re-run setup against an attacker-controlled database and gain administrator access.
Root Cause
The root cause is improper limitation of a pathname to a restricted directory [CWE-22]. User-supplied input is incorporated into a file path consumed by a filesystem delete call without canonicalization or allow-list validation. Sequences such as ../ resolve outside the intended uploads or plugin directory, enabling deletion of arbitrary files readable by the PHP process user. The handler also fails to enforce capability checks appropriate for destructive filesystem actions.
Attack Vector
Exploitation requires network access to the WordPress site and a valid Subscriber account, which is trivially obtained on sites allowing open registration. The attacker submits a crafted request to the vulnerable PeepSo endpoint supplying a traversal path pointing to a sensitive file. Successful requests delete the target file and return a normal response. Repeated requests can remove multiple files, with high-value targets including wp-config.php, .htaccess, and plugin bootstrap files. See the Patchstack PeepSo Plugin Vulnerability advisory for additional context.
Detection Methods for CVE-2026-40805
Indicators of Compromise
- Unexpected deletion of wp-config.php, .htaccess, or files under wp-content/
- WordPress installer page (/wp-admin/install.php) reappearing on a previously configured site
- POST requests from Subscriber accounts to PeepSo AJAX or REST endpoints containing .. or encoded traversal sequences such as %2e%2e%2f
- New Subscriber registrations shortly followed by filesystem change events
Detection Strategies
- Monitor web server access logs for authenticated requests to /wp-admin/admin-ajax.php or PeepSo REST routes containing path traversal patterns
- Alert on unlink() or filesystem delete events against WordPress core files initiated by the PHP worker process
- Correlate low-privilege user authentication with subsequent file deletion telemetry on the host
Monitoring Recommendations
- Enable WordPress file integrity monitoring for the core directory and plugin bootstrap files
- Forward web and PHP-FPM logs to a centralized analytics platform for traversal-pattern searches
- Track registration-to-action timing to surface newly created Subscriber accounts performing privileged operations
How to Mitigate CVE-2026-40805
Immediate Actions Required
- Update the PeepSo plugin to a version later than 9.0.5.4 as soon as a fixed release is published by the vendor
- Disable new user registration or restrict the default role to a non-privileged custom role until patched
- Audit WordPress file integrity and restore any missing core or configuration files from backup
- Rotate database credentials and WordPress salts if wp-config.php deletion is suspected
Patch Information
Refer to the Patchstack PeepSo Plugin Vulnerability advisory for the current fixed version and vendor patch notes. Apply the vendor-supplied update through the WordPress plugin manager or via WP-CLI.
Workarounds
- Temporarily deactivate the PeepSo plugin on sites that cannot be patched immediately
- Place a Web Application Firewall rule blocking requests to PeepSo endpoints containing ../, ..\, or URL-encoded traversal payloads
- Set the PHP process user to deny write access on wp-config.php and other sensitive files via filesystem ACLs
# Configuration example
# Harden wp-config.php against deletion by the web server user
chown root:www-data /var/www/html/wp-config.php
chmod 440 /var/www/html/wp-config.php
chattr +i /var/www/html/wp-config.php
# Update PeepSo via WP-CLI once a fixed version is available
wp plugin update peepso --path=/var/www/html
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

