
Media Hygiene: Remove or Delete Unused Images and More! Security & Risk Analysis
wordpress.org/plugins/media-hygieneThe Media Hygiene plugin removes unused media from the WordPress library to free up space, reduce clutter, and improve server performance.
Is Media Hygiene: Remove or Delete Unused Images and More! Safe to Use in 2026?
Generally Safe
Score 97/100Media Hygiene: Remove or Delete Unused Images and More! has a strong security track record. Known vulnerabilities have been patched promptly.
The "media-hygiene" plugin v4.0.1 exhibits a mixed security posture. On the positive side, it demonstrates good practices such as extensive use of prepared statements for SQL queries and proper output escaping, with 75% and 90% respectively. The presence of nonces and capability checks on all identified AJAX handlers is also a strong security indicator. However, a significant concern arises from the discovery of one AJAX handler lacking authentication checks, creating a direct entry point for unauthorized actions. Furthermore, taint analysis revealed two high-severity flows with unsanitized paths, indicating potential for injection vulnerabilities if these flows are exposed to user input.
The vulnerability history of this plugin is a notable red flag. While the latest known vulnerability was in 2025, the fact that one out of three total CVEs remains unpatched is a critical issue. The prevalence of "Missing Authorization" as a common vulnerability type in its history suggests a recurring pattern of oversight in securing sensitive functionalities. This, combined with the static analysis finding of an unprotected AJAX handler, reinforces concerns about the plugin's authorization mechanisms. The plugin has strengths in areas like SQL and output sanitization, but the identified authorization flaws and unpatched vulnerability demand attention.
Key Concerns
- Unprotected AJAX handler found
- High severity taint flows with unsanitized paths
- Currently unpatched CVE
- History of missing authorization vulnerabilities
Media Hygiene: Remove or Delete Unused Images and More! Security Vulnerabilities
CVEs by Year
Severity Breakdown
3 total CVEs
Media Hygiene <= 4.0.2 - Missing Authorization
Media Hygiene <= 4.0.0 - Missing Authorization
Media Hygiene <= 3.0.1 - Missing Authorization to Authenticated (Subscriber+) Arbitrary Attachment Deletion
Media Hygiene: Remove or Delete Unused Images and More! Code Analysis
SQL Query Safety
Output Escaping
Data Flow Analysis
Media Hygiene: Remove or Delete Unused Images and More! Attack Surface
AJAX Handlers 28
WordPress Hooks 12
Scheduled Events 5
Maintenance & Trust
Media Hygiene: Remove or Delete Unused Images and More! Maintenance & Trust
Maintenance Signals
Community Trust
Media Hygiene: Remove or Delete Unused Images and More! Alternatives
Remove Broken Images
remove-broken-images
Very simply, uses JavaScript to remove broken images from page display.
Delete product images for WooCommerce
wc-delete-product-images
Removes product assigned images (featured and gallery only) on product delete.
Clean WP Dashboard
clean-wp-dashboard
Easily remove any/all of the default WordPress dashboard widgets
Smart Bulk Delete & Content Cleaner for WordPress
smart-bulk-content-remover
Safely bulk delete posts, pages, media, and comments with flexible filters and a clean interface.
Auto Generated Images Remover
auto-generated-images-remover
Short Description: Scan and remove auto-generated WordPress image thumbnails safely.
Media Hygiene: Remove or Delete Unused Images and More! Developer Profile
6 plugins · 15K total installs
How We Detect Media Hygiene: Remove or Delete Unused Images and More!
Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.
Asset Fingerprints
/wp-content/plugins/media-hygiene/assets/css/wmh-custom-feedback.css/wp-content/plugins/media-hygiene/assets/js/wmh-custom-feedback.js/wp-content/plugins/media-hygiene/assets/js/wmh-custom-feedback.jsmedia-hygiene/assets/css/wmh-custom-feedback.css?ver=media-hygiene/assets/js/wmh-custom-feedback.js?ver=HTML / DOM Fingerprints
wmh-modal<!-- wmh-plugin-feedback-view.php --><!-- wmh-deactivation-plugin-feedback-popup -->data-plugin-name="Media Hygiene"data-plugin-version="4.0.1"wmhFeedbackObj