All reports
Medium

WordPress Core <= 7.1 - Authenticated (Author+) Missing Authorization to Comment/Note Reparenting via REST API

Affected versions

WordPresswordpress
Affected versions
<=6.6.7 || >=6.7 <=6.7.7 || >=6.8 <=6.8.8 || >=6.9 <=6.9.7 || >=7.0 <=7.0.4 || >=7.1 <=7.1
Fixed version
6.6.8 · 6.7.8 · 6.8.9 · 6.9.8 · 7.0.5 · 7.1.1

Description

WordPress Core is vulnerable to Missing Authorization via the REST comments controller update_item_permissions_check() in various versions up to, and including, 7.1 because the target post is not authorized when a comment or note's parent post is changed - only the current parent was checked. This makes it possible for an authenticated attacker who can edit a comment (e.g. an Author editing a comment on their own post) to reparent it onto an arbitrary post, including posts they can neither read nor edit.

Links

Credits

  • viridis

Data rights and licenses

Wordfence

Copyright 2012-2026 Defiant Inc.

Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy.

License terms