# WP Document Revisions <= 5.8.5 - Unauthenticated Sensitive Information Exposure via Direct Document File Access

- **ID:** WPSEC-2026-4431
- **Plugin:** WP Document Revisions (`wp-document-revisions`), https://wordpress.org/plugins/wp-document-revisions/
- **Affected versions:** from 3.6.0 before 5.8.6
- **Fixed in:** 5.8.6 (Update to 5.8.6 or later.)
- **Severity:** Low 3.7 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N)
- **Weakness:** CWE-284
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-document-revisions
- **Fix released:** 2026-12-01
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4431/

## Description

The WP Document Revisions plugin for WordPress is vulnerable to Sensitive Information Exposure via direct document file access in all versions up to, and including, 5.8.5, due to an incorrectly built .htaccess deny rule for the opt-in 'document_stop_file_access_pattern' filter. The rule pattern started with a slash and the home path, which Apache never sees in .htaccess context, so the rule did not match document file requests and did not block them (in 3.6.x the rule was not written at all on sites installed in a subdirectory). This makes it possible for unauthenticated attackers who know or obtain a document file's hashed stored name to download private document files directly. Only Apache sites that turned on the file access block with the 'document_stop_file_access_pattern' filter are affected. The block is off by default.

## References

- https://wpsec.com/vuln/WPSEC-2026-4431/
- https://plugins.svn.wordpress.org/wp-document-revisions/tags/5.8.6/
- https://wordpress.org/plugins/wp-document-revisions/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4431/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
