Prevent Direct Access – Protect WordPress Files Plugin Vulnerability (CVE-2026-136152)

On this page

Security Alert Summary

The Prevent Direct Access – Protect WordPress Files plugin before 2.8.9.2 contains an information disclosure vulnerability that allows unauthenticated attackers to obtain protected file names and paths by requesting the dynamically generated robots.txt file. The file can expose attachment page URLs and direct _pda/ directory file paths for protected media, enabling enumeration of original file names, upload directory structure, and attachment slugs. This may undermine the plugin’s file protection and could allow direct file access where server-level restrictions are missing or misconfigured.


CVE Details

  • CVE ID: CVE-2026-136152
  • Affected product: Prevent Direct Access – Protect WordPress Files plugin (buildwps)
  • Affected versions: Versions before 2.8.9.2
  • Published: November 24, 2026 at 02:18:17 PM UTC
  • Last modified: November 24, 2026 at 02:18:17 PM UTC
  • CVSS v3.1: Base score 5.3 (MEDIUM); vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Authentication / privileges / user interaction: No authentication required; Privileges Required: NONE; User Interaction: NONE
  • Primary impact: Confidentiality: LOW; Integrity: NONE; Availability: NONE
  • Weaknesses (CWE): CWE-200, CWE-612

Technical Details

According to the advisory, the plugin generates a robots.txt file that appends Disallow rules containing attachment page URLs and direct _pda/ directory file paths for all protected media. Because that content is produced dynamically and is accessible without authentication, an attacker can send an unauthenticated HTTP request to /robots.txt to enumerate original file names, upload directory structure, and attachment slugs.

This disclosure undermines the plugin’s intent to hide or restrict direct access to protected media. Where server-level protections or access controls are misconfigured or absent, the disclosed paths and filenames could assist an attacker in requesting protected files directly. The description does not name specific functions or REST endpoints beyond the robots.txt output and the _pda/ directory paths.


How This Could Impact Your Website

Imagine a site where the owner, an internal content editor, and an external contractor all manage media and uploads. If an attacker can enumerate media filenames and upload paths, they may identify files that reveal staff names, project names, or other metadata that can be used to craft targeted social engineering or phishing messages. Even though the vulnerability primarily impacts confidentiality (file name and path disclosure) and does not by itself alter site content, that leakage can increase the risk of successful phishing attempts or reconnaissance for further attacks.

If youre unsure whether your site is affected or how to assess your current user roles and plugins, it may be worth having a professional review your setup.


Recommended Actions

  • Update the affected plugin as soon as a patched version is available.
  • Review and reduce unnecessary user roles, especially contributor-level accounts and other low-privilege roles that can upload or manage media.
  • Enforce strong passwords and two-factor authentication for editors and administrators.
  • Remove unused or unmaintained plugins and themes to reduce your attack surface.
  • Monitor site activity and access logs for unusual requests to /robots.txt or to upload directories, and investigate any unexpected file requests.

If youd like help reviewing your plugins, user roles, or overall WordPress security posture, our team at Freshy is happy to help.


References