Skip to main content
Vulnerability Database/CVE-2026-107791

CVE-2026-107791: WP Comment Cleaner Auth Bypass Vulnerability

CVE-2026-107791 is an authentication bypass flaw in WP Comment Cleaner WordPress plugin that allows low-privilege users to delete all site comments. This post explains its technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-107791 Overview

CVE-2026-107791 affects the WP Comment Cleaner WordPress plugin in versions prior to 7.2. The plugin exposes a bulk comment-deletion routine without a capability check or nonce validation. Authenticated users with minimal permissions, including subscribers, can invoke the routine and permanently delete every comment on the site. The flaw is categorized as Missing Authorization [CWE-862] and affects data integrity on sites that rely on comment history for engagement, moderation records, or community discussion.

Critical Impact

Any authenticated user, including low-privileged subscriber accounts, can permanently destroy all site comments through a single unauthorized request.

Affected Products

  • WP Comment Cleaner WordPress plugin versions prior to 7.2
  • WordPress sites that permit subscriber-level registration with the vulnerable plugin installed
  • Any WordPress deployment where the plugin remains active without the 7.2 update

Discovery Timeline

  • 2026-10-12 - CVE-2026-107791 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-107791

Vulnerability Analysis

The WP Comment Cleaner plugin ships a bulk-deletion handler intended for site administrators who need to purge spam or orphaned comments. The handler executes the deletion logic without first confirming the caller holds the moderate_comments or manage_options capability. It also omits WordPress nonce validation, which normally ties a request to an intentional administrative action. The combination removes both the authorization gate and the request-origin control that WordPress plugins rely on to protect privileged routines.

An authenticated attacker who registers as a subscriber can submit a request to the vulnerable endpoint and trigger the deletion of every comment stored in wp_comments. The impact is destructive and irreversible without a database backup. Comment metadata, threaded replies, and historical moderation decisions are lost in a single call.

Root Cause

The root cause is Missing Authorization [CWE-862]. The plugin's bulk-delete routine never calls current_user_can() to confirm the required capability. It also fails to invoke check_admin_referer() or wp_verify_nonce() to validate the request originated from an authorized administrative screen. These two omissions collapse the plugin's access-control model.

Attack Vector

Exploitation requires network access to the WordPress site and valid credentials at the subscriber tier or higher. The attacker authenticates, then issues an HTTP request to the plugin's bulk-deletion endpoint. No user interaction from an administrator is required. The vulnerability is described in the WPScan Vulnerability Report.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-107791

Indicators of Compromise

  • Sudden disappearance of all comments across posts, with no corresponding administrator action in the audit log
  • HTTP POST requests to WP Comment Cleaner plugin endpoints originating from accounts without moderate_comments capability
  • Spikes in wp_comments table deletions visible in database query logs or binlog records
  • Subscriber or low-privilege user sessions issuing requests to /wp-admin/admin-ajax.php or /wp-admin/admin-post.php with plugin-specific action parameters

Detection Strategies

  • Audit WordPress plugin inventory for WP Comment Cleaner versions below 7.2
  • Correlate web access logs for authenticated low-privilege sessions reaching plugin administrative routes
  • Monitor database write activity against the wp_comments and wp_commentmeta tables for bulk DELETE operations

Monitoring Recommendations

  • Enable WordPress activity logging to capture plugin action calls with user context and timestamps
  • Forward WordPress and web server logs to a centralized SIEM for correlation and alerting on bulk-deletion patterns
  • Alert on comment-count deltas exceeding a defined threshold within a short window

How to Mitigate CVE-2026-107791

Immediate Actions Required

  • Update WP Comment Cleaner to version 7.2 or later on all WordPress installations
  • Review user registration settings and disable open subscriber registration if it is not required
  • Take a verified backup of the wp_comments and wp_commentmeta tables before applying updates
  • Audit existing low-privilege accounts for suspicious registration patterns or recent activity

Patch Information

The vendor addressed the issue in WP Comment Cleaner version 7.2 by adding capability checks and nonce validation to the bulk-deletion routine. Site operators should upgrade through the WordPress plugin manager or by replacing the plugin files with the fixed release. Confirm the installed version in the WordPress admin plugins screen after the update.

Workarounds

  • Deactivate and remove the WP Comment Cleaner plugin until the 7.2 update can be applied
  • Restrict access to /wp-admin/admin-ajax.php and /wp-admin/admin-post.php from unauthenticated or low-privilege sessions using a web application firewall rule
  • Disable new user registration by unchecking Settings → General → Membership until remediation is complete
bash
# Configuration example
# Disable open WordPress registration via wp-cli
wp option update users_can_register 0

# Confirm installed plugin version
wp plugin get wp-comment-cleaner --field=version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.