CVE-2026-127011: Foxtool <= 2.5.4 - Contributor+ Arbitrary Image Attachment Deletion via Post Deletion
The Foxtool All-in-One: Contact chat button, Custom login, Media optimize images WordPress plugin through 2.5.4 does not check that the current user owns or may delete a post's featured image before permanently deleting it along with the post, allowing users with a role as low as Contributor to delete arbitrary image attachments from the media library, such as those uploaded by administrators, when the option to delete attached images on post deletion is enabled.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Disable the option to delete attached images when a post is deleted.
Foxtool All-in-One WordPress plugin delete attached images on post deletion = false
Event History
Frequently Asked Questions
Who can exploit this issue?
A user with Contributor-level access or higher can exploit it. The attacker must be able to delete a post whose featured image handling triggers the vulnerable cleanup behavior.
Is the default configuration affected?
The issue is only triggered when the option to delete attached images when a post is deleted is enabled. The provided information does not state whether that option is enabled by default.
What can an attacker delete?
An attacker can permanently delete arbitrary image attachments from the WordPress media library, including images uploaded by administrators. The vulnerable permission check does not verify that the user owns or is otherwise allowed to delete the post's featured image.