Gravity SMTP Under Siege: Millions of Attacks Expose Secrets from 100,000+ WordPress Websites + Video

Listen to this Post

Featured ImageIntroduction: A Silent WordPress Threat Escalates Into a Global Security Crisis

The WordPress ecosystem is once again facing a serious cybersecurity challenge. This time, the spotlight is on Gravity SMTP, a popular email delivery plugin used by more than 100,000 websites worldwide. What initially appeared to be a medium-severity vulnerability has rapidly evolved into a large-scale exploitation campaign, with attackers launching millions of automated requests in search of sensitive credentials and configuration data.

Security researchers have reported an unprecedented surge in attack activity targeting this flaw. In just a few days, millions of exploitation attempts were recorded, demonstrating how even a seemingly moderate vulnerability can become a major security incident when it exposes valuable secrets such as API keys, OAuth tokens, and email service credentials.

The incident serves as another reminder that information disclosure vulnerabilities are often underestimated. While they may not immediately allow remote code execution, the intelligence they provide attackers can become the first step toward far more devastating compromises.

Vulnerability Overview: Gravity SMTP Exposes Critical Internal Data

The vulnerability, tracked as CVE-2026-4020 and assigned a CVSS score of 5.3, affects all Gravity SMTP versions up to and including version 2.1.4.

At the center of the issue is a REST API endpoint:
/wp-json/gravitysmtp/v1/tests/mock-data

Due to an improperly configured permission callback function, the endpoint grants access to anyone on the internet without requiring authentication.

By simply appending the following parameter:

?page=gravitysmtp-settings

an attacker can trigger the plugin into generating a massive JSON report containing detailed information about the target website.

The simplicity of exploitation is alarming because attackers need nothing more than a single unauthenticated HTTP GET request to retrieve the exposed data.

What Information Is Being Leaked?

The exposed JSON response contains approximately 365 KB of highly sensitive information.

Among the leaked data are:

PHP version information

Installed PHP extensions

Web server version details

Website document root paths

Database server type and version

WordPress configuration details

Active plugins and version numbers

Active WordPress theme information

Database table names

Internal system configuration data

For attackers, this information acts like a detailed blueprint of the entire website environment.

Instead of spending weeks performing reconnaissance, they can immediately identify potential weaknesses, outdated software, and additional attack opportunities.

The Most Dangerous Exposure: API Keys and Authentication Secrets

The most concerning aspect of CVE-2026-4020 is not the server information itself.

The leaked report also contains active credentials used by email delivery providers integrated with Gravity SMTP.

Affected services include:

Amazon SES

Google Mail integrations

Mailjet

Resend

Zoho Mail

These credentials may include:

API keys

Authentication secrets

OAuth access tokens

Integration configuration data

Once obtained, attackers can potentially send emails impersonating the affected website, launch phishing campaigns, abuse email-sending quotas, damage domain reputation, and perform additional attacks against connected services.

For many organizations, these credentials may be as valuable as administrative passwords.

Attack Volume Explodes Across the Internet

Security researchers observed a dramatic rise in exploitation activity during early June 2026.

The campaign reached its peak on June 7, when more than four million exploitation attempts were recorded in a single day.

Overall, more than 17 million malicious requests have been blocked since public disclosure of the vulnerability.

The scale of these attacks indicates that threat actors quickly incorporated the exploit into automated scanning frameworks capable of identifying vulnerable WordPress sites across the internet.

Rather than targeting individual victims, attackers appear to be performing mass reconnaissance and credential harvesting operations.

IP Addresses Linked to Massive Exploitation Activity

Researchers identified several IP addresses responsible for a substantial percentage of blocked exploitation attempts.

IP Address Blocked Requests

45.148.10.95 642,000+

193.32.162.60 586,000+

176.65.148.139 539,000+

173.199.90.188 460,000+

45.148.10.120 410,000+

While blocking these addresses may reduce immediate noise, security experts warn that attackers frequently rotate infrastructure, making patching the only reliable long-term defense.

Why This Vulnerability Is More Serious Than Its CVSS Score Suggests

A CVSS score of 5.3 classifies the issue as a medium-severity vulnerability.

However, real-world impact often extends far beyond the numeric score.

Traditional vulnerability scoring systems primarily evaluate direct technical impact. They do not always fully account for how exposed information can be combined with other weaknesses to create larger attack chains.

In this case, leaked credentials can potentially grant access to external services, enable phishing operations, and provide intelligence for future compromises.

The vulnerability may therefore act as a force multiplier for more advanced attacks.

Patch Availability and Recommended Actions

The vendor addressed the vulnerability by releasing Gravity SMTP version 2.1.5 on March 17, 2026.

Administrators should immediately:

Update the Plugin

Upgrade Gravity SMTP to version 2.1.5 or newer without delay.

Rotate All Credentials

Because attackers may have already harvested exposed credentials, organizations should rotate:

API keys

OAuth tokens

SMTP credentials

Service authentication secrets

Audit Email Activity

Review outbound email logs for:

Unusual sending patterns

Unexpected authentication events

Suspicious email campaigns

Review Server Logs

Although exploitation may leave limited traces, administrators should still examine:

Web server access logs

Security monitoring systems

Authentication records

Strengthen Monitoring

Deploy security monitoring capable of detecting unauthorized access attempts and suspicious API activity.

Deep Analysis: Technical Breakdown of the Exploit

Security professionals investigating potential compromise can use several Linux commands to identify indicators of exposure.

Search Web Logs for Exploitation Attempts

grep "gravitysmtp/v1/tests/mock-data" /var/log/nginx/access.log

Count Exploitation Requests

grep "gravitysmtp/v1/tests/mock-data" access.log | wc -l

Identify Source IP Addresses

grep "gravitysmtp/v1/tests/mock-data" access.log | awk '{print $1}' | sort | uniq -c | sort -nr

Search Apache Logs

grep "gravitysmtp-settings" /var/log/apache2/access.log

Review Active WordPress Plugins

wp plugin list

Verify Installed Gravity SMTP Version

wp plugin get gravity-smtp

Search for Suspicious Email Activity

grep "mail" /var/log/syslog

Review Authentication Events

journalctl -xe | grep auth

Check Outbound Connections

netstat -plant

Monitor Live Traffic

tcpdump -i any host your-server-ip

These commands can help administrators determine whether exploitation attempts occurred and whether additional investigation is required.

What Undercode Say:

The Gravity SMTP incident highlights one of the most underestimated categories of cybersecurity vulnerabilities: information disclosure flaws.

Many organizations prioritize vulnerabilities that allow direct code execution while treating data exposure issues as secondary concerns.

This mindset creates dangerous blind spots.

Attackers rarely begin with destructive actions.

They begin by collecting intelligence.

The exposed Gravity SMTP endpoint essentially performs reconnaissance on behalf of attackers.

It reveals the software stack.

It reveals plugin versions.

It reveals server configuration details.

It reveals database information.

Most importantly, it reveals active authentication credentials.

This dramatically reduces the time required to plan further attacks.

The simplicity of exploitation is particularly concerning.

No brute force is required.

No authentication bypass is required.

No sophisticated malware is required.

One HTTP request is enough.

This explains why attack volume exploded so rapidly after public disclosure.

Automated scanners can easily integrate such requests into existing attack frameworks.

Another important lesson is that API keys have become the new passwords.

Organizations frequently focus on user credentials while overlooking service credentials.

Yet modern infrastructure increasingly depends on APIs.

Compromising a single API key can provide access to critical business services.

Email infrastructure is especially attractive because it can be weaponized for phishing.

A trusted domain can significantly increase the success rate of malicious campaigns.

The incident also demonstrates limitations in vulnerability scoring systems.

A medium CVSS rating may create a false sense of security.

Attackers do not prioritize vulnerabilities according to CVSS numbers.

They prioritize vulnerabilities according to operational value.

The credentials exposed through Gravity SMTP have significant operational value.

Security teams should therefore assess vulnerabilities based on realistic attack scenarios rather than numerical scores alone.

Organizations using WordPress should adopt continuous patch management strategies.

Waiting weeks or months before applying updates creates unnecessary risk.

The period between disclosure and mass exploitation continues to shrink every year.

Threat actors increasingly automate everything.

The Gravity SMTP campaign is another example of that trend.

The internet is now scanned continuously.

Any exposed service becomes a target almost immediately.

Defenders must therefore move faster than ever before.

✅ Gravity SMTP versions up to 2.1.4 were reported as vulnerable to CVE-2026-4020, exposing sensitive system information through an improperly protected REST API endpoint.

✅ The vulnerability can be exploited without authentication using a simple GET request, making large-scale automated exploitation highly practical.

✅ Security researchers reported millions of exploitation attempts and advised immediate upgrades to version 2.1.5 alongside credential rotation because exposed API keys and OAuth tokens may already have been harvested by attackers.

Prediction

(+1) Increased WordPress Security Awareness 📈

The visibility of this incident will likely encourage website owners to adopt faster patch management processes, stronger monitoring practices, and more aggressive credential rotation policies.

(+1) Improved Plugin Security Reviews 🔐

Plugin developers may introduce stricter security audits for REST API endpoints, reducing the likelihood of similar exposure vulnerabilities appearing in future releases.

(-1) Growth in Credential-Harvesting Campaigns ⚠️

Threat actors are expected to continue targeting information disclosure vulnerabilities because exposed API keys and service tokens often provide a higher return on investment than traditional exploitation methods.

(-1) More Automated Mass Scanning 🤖

Cybercriminal groups will likely expand internet-wide scanning operations, integrating newly disclosed WordPress vulnerabilities into automated attack platforms within hours of public disclosure rather than days or weeks.

▶️ Related Video (82% Match):

🕵️‍📝Let’s dive deep and fact‑check.

🎓 Live Courses & Certifications:

Join Undercode Academy for Verified Certifications

🚀 Request a Custom Project:

Secure, high-velocity infrastructure and disruptive technological engineering. Contact our engineering team for high-tier development and proprietary systems:
[email protected]
💎 Smart Architecture | 🛡️ Secure by Design | ⭐ Trusted by Thousands

References:

Reported By: cyberpress.org
Extra Source Hub (Possible Sources for article):
https://www.linkedin.com
Wikipedia
OpenAi & Undercode AI

Image Source:

Unsplash
Undercode AI DI v2

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow UndercodeNews & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin | 🦋BlueSky | 🐘Mastodon | 📺Youtube