ZeroHour

CVE-2026-4020

moderate

Unauthenticated Sensitive Data Exposure in Gravity SMTP WordPress Plugin

CVSS 3.1
7.5 high
EPSS
40%p99
Published
()
Modified
AI analysis

CVE-2026-4020 is an unauthenticated sensitive information exposure (CWE-200) in the Gravity SMTP plugin for WordPress, affecting all versions up to and including 2.1.4. The plugin registers a REST route at /wp-json/gravitysmtp/v1/tests/mock-data with a permission_callback that unconditionally returns true, so any anonymous visitor can call it; when the ?page=gravitysmtp-settings parameter is appended, the register_connector_data() method populates internal connector data and the endpoint returns roughly 365 KB of JSON containing the full System Report. An unauthenticated attacker therefore gains detailed configuration information, including PHP and WordPress versions, loaded extensions, web server and database server type and version, document root, database table names, all active plugins with versions, the active theme, WordPress configuration details, and any API keys or tokens configured in the plugin, which can enable follow-on attacks. Any WordPress site running Gravity SMTP 2.1.4 or earlier is affected, and related reporting indicates attackers are already exploiting the bug in the wild to expose API keys, with EPSS estimating a 40% probability of exploitation within 30 days (99th percentile).

What to do: Update Gravity SMTP to the latest available patched release (any version newer than 2.1.4) as soon as possible. Until patched, block or restrict unauthenticated access to /wp-json/gravitysmtp/v1/tests/mock-data, for example via WAF rules or REST API restrictions. Rotate any API keys or tokens configured in the plugin and review web server logs for requests to the endpoint, since in-the-wild attacks are already exposing keys.

Affected
Rocketgenius Gravity SMTP (WordPress plugin)all versions up to and including 2.1.4
Estimated exposure
moderatelikely on the order of tens of thousands of WordPress sites (exact active-install count not provided in the data) — No active-install figure was included in the source data, so this is an order-of-magnitude estimate based on Gravity SMTP being a relatively recently released, single-vendor WordPress plugin whose entire install base is remotely exposed to…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

The Gravity SMTP plugin for WordPress is vulnerable to Sensitive Information Exposure in all versions up to, and including, 2.1.4. This is due to a REST API endpoint registered at /wp-json/gravitysmtp/v1/tests/mock-data with a permission_callback that unconditionally returns true, allowing any unauthenticated visitor to access it. When the ?page=gravitysmtp-settings query parameter is appended, the plugin's register_connector_data() method populates internal connector data, causing the endpoint to return approximately 365 KB of JSON containing the full System Report. This makes it possible for unauthenticated attackers to retrieve detailed system configuration data including PHP version, loaded extensions, web server version, document root path, database server type and version, WordPress version, all active plugins with versions, active theme, WordPress configuration details, database table names, and any API keys/tokens configured in the plugin.

Ecosystems
WordPress
Weakness
CWE-200
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

In the news