Hackers Take Advantage of Gravity SMTP WordPress Plugin Vulnerability to Reveal API Keys

Try Our Free Tools!
Master the web with Free Tools that work as hard as you do. From Text Analysis to Website Management, we empower your digital journey with expert guidance and free, powerful tools.

Cybercriminals are actively exploiting a newly patched security vulnerability affecting the Gravity SMTP plugin, utilized by approximately 100,000 WordPress sites.

This vulnerability, designated as CVE-2026-4020 (with a CVSS score of 5.3), constitutes a medium-severity information disclosure flaw.

It enables unauthorized attackers to extract sensitive information, including configuration data, API keys, secrets, and OAuth tokens related to the plugin’s email integrations.

According to Wordfence, “The issue arises from a REST API endpoint located at /wp-json/gravitysmtp/v1/tests/mock-data, which has a permission callback that indiscriminately returns true, thus allowing any unauthenticated user to access it.”

Furthermore, “appending the ?page=gravitysmtp-settings query parameter activates the plugin’s register_connector_data() method, causing the endpoint to yield roughly 365 KB of JSON, revealing a comprehensive System Report.”

This exposure can be weaponized by assailants to access extensive 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 intricacies
  • Database table names
  • API keys and tokens linked to services like Amazon SES, Google, Mailjet, Resend, and Zoho

Such a breach may allow adversaries to harvest credentials that could be misused to dispatch emails on behalf of the compromised site. Additionally, this detailed insight into the software stack could facilitate further, more sophisticated attacks.

Wordfence cautions, As with any vulnerabilities that expose sensitive information, the ramifications hinge on which data is disclosed.

In this instance, the unveiling of active third-party API credentials empowers an attacker to misuse the site’s email services, while the exhaustive system report significantly diminishes the effort required to orchestrate subsequent attacks.

Hacker in hoodie working on multiple computer screens

A remediation patch has been disseminated in version 2.1.5 of the plugin. Perpetrators have already capitalized on this flaw by executing unauthenticated HTTP GET requests to the vulnerable REST API endpoint with the “?page=gravitysmtp-settings” parameter, thus obtaining critical site information without the need for authentication.

Wordfence has thwarted over 17 million exploit attempts targeting CVE-2026-4020 thus far, with significant activity beginning in early May 2026, escalating sharply around June 6, 2026, reaching a peak of over 4,000,000 requests the following day. The exploit attempts have originated from these IP addresses:

  • 45.148.10.95
  • 193.32.162.60
  • 176.65.148.139
  • 173.199.90.188
  • 45.148.10.120
  • 185.8.107.155
  • 185.8.106.37
  • 185.8.106.92
  • 185.8.106.145
  • 176.65.148.30

Website administrators using a susceptible version of the Gravity SMTP plugin, particularly if they have configured third-party email integrations, should presume a potential compromise and must promptly rotate credentials post-upgrade to the latest plugin version.

Additionally, it is advisable to scrutinize server log files for any suspicious requests emanating from the specified IP addresses.

Source link: Thehackernews.com.

Disclosure: This article is for general information only and is based on publicly available sources. We aim for accuracy but can't guarantee it. The views expressed are the author's and may not reflect those of the publication. Some content was created with help from AI and reviewed by a human for clarity and accuracy. We value transparency and encourage readers to verify important details. This article may include affiliate links. If you buy something through them, we may earn a small commission — at no extra cost to you. All information is carefully selected and reviewed to ensure it's helpful and trustworthy.

Reported By

Souvik Banerjee

I’m Souvik Banerjee from Kolkata, India. As a Marketing Manager at RS Web Solutions (RSWEBSOLS), I specialize in digital marketing, SEO, programming, web development, and eCommerce strategies. I also write tutorials and tech articles that help professionals better understand web technologies.
Share the Love
Related News Worth Reading