Remediation Steps
Follow the steps below to remediate this finding on WordPress.
In wp-config.php, disable debug output:
define('WP_DEBUG', false); define('WP_DEBUG_DISPLAY', false); define('WP_DEBUG_LOG', false);If the site previously had WP_DEBUG enabled, ensure the debug.log file under wp-content/ is not publicly accessible (add a deny rule in .htaccess).
Install a plugin such as "Query Monitor" only in development environments and never in production.