# WP Document Revisions <= 5.8.5 - Authenticated (Editor+) Missing Authorization to Document Attachment Modification

- **ID:** WPSEC-2026-4432
- **Plugin:** WP Document Revisions (`wp-document-revisions`), https://wordpress.org/plugins/wp-document-revisions/
- **Affected versions:** all versions before 5.8.6
- **Fixed in:** 5.8.6 (Update to 5.8.6 or later.)
- **Severity:** Low 3.3 (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N)
- **Weakness:** CWE-863
- **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-4432/

## Description

The WP Document Revisions plugin for WordPress is vulnerable to unauthorized modification of data via the WordPress media REST API in all versions up to, and including, 5.8.5, due to a missing capability check on the parent document when a document's attachment is edited or deleted. WordPress checks only the generic post capabilities and the attachment's own author. This makes it possible for authenticated users who can edit other users' posts but have no document capabilities to edit, delete or detach a document's file. Detaching the file exposes its stored name and address. Default roles are not affected: exploitation requires a site that removed the document capabilities from a role such as Editor.

## References

- https://wpsec.com/vuln/WPSEC-2026-4432/
- 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-4432/

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.
