Cyber Security News

Hackers Exploit WordPress SMTP Plugin With 100,000+ Installs to Steal Sensitive Data

Threat actors are actively exploiting a critical security flaw in the widely used Gravity SMTP WordPress plugin to extract sensitive configuration data, including API keys and authentication tokens.

The vulnerability, tracked as CVE-2026-4020 with a CVSS score of 5.3, affects all versions up to and including 2.1.4 and exposes more than 100,000 websites to potential compromise.

WordPress SMTP Plugin Flaw

The issue stems from an improperly secured REST API endpoint, “/wp-json/gravitysmtp/v1/tests/mock-data,” which lacks authentication checks because its permission_callback always returns true.

This misconfiguration allows unauthenticated attackers to invoke the endpoint and retrieve a comprehensive system report by appending the query parameter “?page=gravitysmtp-settings.”

The response contains approximately 365 KB of JSON data, including sensitive environment details such as PHP version, active plugins, database configuration, and, most critically, API credentials for third-party email services.

Wordfence revealed that the exposed data may include OAuth tokens and API keys for services such as Amazon SES, Google, Mailjet, Zoho, and Resend.

This enables attackers to hijack email functionality, impersonate legitimate domains, or pivot further into targeted attacks using reconnaissance data. The vulnerability was responsibly disclosed on March 30, 2026, after the vendor released a patched version, 2.1.5, on March 17, 2026.

Despite its moderate CVSS rating, exploitation has surged significantly in recent weeks. According to telemetry data, the Wordfence firewall has blocked more than 17 million attack attempts.

Malicious API Request (Source: wordfence)

The most intense activity occurred between June 7 and June 11, 2026, with a peak of over 4 million blocked requests recorded on June 7 alone. The attack requires only a single unauthenticated HTTP GET request, making it trivial to exploit at scale.

A typical attack request observed in the wild targets the vulnerable endpoint with the required query string, prompting the server to return sensitive configuration data without any authentication barrier. This simplicity has contributed to widespread scanning and automated exploitation campaigns across the internet.

In response to active exploitation, Wordfence deployed firewall protections to premium users on May 5, 2026, with free users receiving coverage on June 4, 2026.

Notably, the firewall rule was introduced outside the standard disclosure workflow after researchers observed real-world attack activity escalating beyond initial severity assessments.

Indicators of Compromise (IOCs)

Below are key indicators associated with exploitation attempts:

TypeIndicatorDescription
URL path/wp-json/gravitysmtp/v1/tests/mock-dataVulnerable Gravity SMTP REST API endpoint targeted by attackers
URL (full)/wp-json/gravitysmtp/v1/tests/mock-data?page=gravitysmtp-settingsExploit request used to dump full System Report JSON including credentials
IP address45.148.10.95Source of over 642,000 blocked exploit attempts
IP address193.32.162.60Source of over 586,000 blocked exploit attempts
IP address176.65.148.139Source of over 539,000 blocked exploit attempts
IP address173.199.90.188Source of over 460,000 blocked exploit attempts
IP address45.148.10.120Source of over 410,000 blocked exploit attempts
IP address185.8.107.155Source of over 404,000 blocked exploit attempts
IP address185.8.106.37Source of over 399,000 blocked exploit attempts
IP address185.8.106.92Source of over 394,000 blocked exploit attempts
IP address185.8.106.145Source of over 387,000 blocked exploit attempts
IP address176.65.148.30Source of over 384,000 blocked exploit attempts
HTTP methodGETMethod used in exploitation of the REST API endpoint
User-AgentMozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36Example User-Agent observed in exploit traffic
Affected pluginGravity SMTP (gravitysmtp)WordPress SMTP plugin abused to exfiltrate sensitive configuration and credentials
Affected versions<= 2.1.4Vulnerable versions exposed to unauthenticated data theft
Patched version2.1.5Fixed release that closes the sensitive information exposure

Note: IP addresses and domains are intentionally defanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.

Additionally, defenders should monitor for suspicious requests to:

  • /wp-json/gravitysmtp/v1/tests/mock-data?page=gravitysmtp-settings

Because the vulnerability does not modify files or inject payloads, traces of compromise may only exist in web server access logs.

Security experts strongly advise administrators to update to Gravity SMTP version 2.1.5 or later immediately. In addition, any exposed API keys, secrets, or OAuth tokens should be considered compromised and rotated without delay.

Organizations that leverage affected installations should also review logs for anomalous access patterns and restrict unauthorized API access.

This incident underscores how seemingly low-severity vulnerabilities can escalate into high-impact threats when sensitive data is exposed, particularly on widely deployed platforms like WordPress.

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Recent Posts

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…

1 day ago

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…

1 day ago

Critical WordPress Flaws Allow Attackers to Execute Remote Code Without Authentication

Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…

1 day ago

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…

1 day ago

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…

1 day ago

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…

1 day ago