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

Low 3.3 CWE-863Fixed in 5.8.6
ID
WPSEC-2026-4432
Plugin
WP Document Revisions (wp-document-revisions)
Affected
all versions before 5.8.6
Remediation
Update to 5.8.6 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N
Weakness
CWE-863
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-12-03
Attack surface
WP Document Revisions on WPSec AttackSurface
Fix released
Published

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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0