Hackers Exploit Gravity SMTP WordPress Plugin Bug to Expose API Keys

A recently fixed security vulnerability affecting Gravity SMTP, a WordPress plugin installed on about 100,000 websites, is being exploited by threat actors.

The vulnerability, known as CVE-2026-4020 (CVSS score: 5.3), is a medium-severity information disclosure hole that makes it possible for unauthenticated attackers to obtain private information, including configuration data, API keys, secrets, and OAuth tokens set up for the plugin’s email integrations.

According to Wordfence, this is because a REST API endpoint registered at /wp-json/gravitysmtp/v1/tests/mock-data has a permission_callback that unconditionally returns true, making it accessible to any unauthenticated visitor.

The endpoint returns about 365 KB of JSON with the whole System Report when the plugin’s register_connector_data() method populates internal connector data with the addition of the ?page=gravitysmtp-settings query parameter read more about Hackers Exploit Gravity SMTP WordPress Plugin Bug to Expose API Keys

Get up to date on the latest cybersecurity news and enhance your knowledge of cybersecurity with our thorough coverage of the dangers, breaches, and solutions.

Leave a Reply

Your email address will not be published. Required fields are marked *