Listen to this Post
Critical Exposure Found in Popular Email Plugin Powering 100,000 WordPress Sites
A recently patched vulnerability in the Gravity SMTP plugin, widely used across the WordPress ecosystem, has exposed tens of thousands of websites to serious information leakage risks. The flaw, tracked as CVE-2026-4020, allows unauthenticated attackers to quietly extract sensitive system data without needing any login credentials. With around 100,000 active installations, the impact radius is significant, especially for websites relying on third-party email services for business operations.
What makes this case more concerning is not just the vulnerability itself, but the speed and scale at which it has already been weaponized in the wild.
How a Simple API Endpoint Opened the Door to Full Site Intelligence
The core issue sits inside a REST API endpoint exposed by the plugin at /wp-json/gravitysmtp/v1/tests/mock-data. This endpoint contains a critical flaw in its permission logic, where a permission_callback incorrectly allows unrestricted access to any visitor, authenticated or not.
Security researchers from Wordfence confirmed that when attackers append the parameter ?page=gravitysmtp-settings, the plugin unintentionally generates a full system report. This report can exceed hundreds of kilobytes and includes deeply sensitive configuration data.
What should have been internal diagnostics instead becomes a public intelligence dump.
What Attackers Can Steal From Affected WordPress Installations
Once exploited, the vulnerability reveals a wide spectrum of sensitive information that can be used for deeper intrusion attempts or direct abuse of services. This includes:
PHP version and configuration details
Installed PHP extensions
Web server version and environment
Document root paths
Database engine type and version
WordPress core version
Active plugins and themes
Database table structure
System-level configuration details
Third-party API credentials and tokens
Most critically, attackers can extract email service credentials such as Amazon SES, Google Workspace, Mailjet, Resend, Zoho, and similar integrations. These credentials can be used to send emails impersonating the compromised website, enabling phishing campaigns or spam distribution at scale.
Why This Vulnerability Became a High-Value Target for Attackers
The exposure is not just about information leakage. It significantly reduces the cost of launching further attacks. With full system visibility, attackers can map out the architecture of the site before choosing an exploitation method.
Wordfence emphasized that the severity depends on what data is exposed, but in this case, live API credentials dramatically increase real-world risk. Once email service tokens are stolen, attackers can abuse trusted domains to bypass spam filters and security systems.
This transforms a “medium severity” issue into a practical entry point for account takeover and infrastructure abuse.
Active Exploitation and Large-Scale Attack Campaigns Already Underway
Even after disclosure, attackers wasted no time. Malicious actors began sending unauthenticated HTTP GET requests targeting the vulnerable endpoint, attempting to trigger the system report extraction.
Wordfence has already blocked over 17 million exploit attempts linked to CVE-2026-4020. Activity began in early May 2026, but escalated sharply around June 6, 2026, when daily exploit attempts exceeded 4 million requests.
The attack infrastructure has been traced to multiple IP addresses, including:
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
The scale indicates automated scanning and exploitation bots actively targeting vulnerable WordPress deployments across the internet.
Patch Released but Risk Remains for Unupdated Systems
The vulnerability has been fixed in version 2.1.5 of the Gravity SMTP plugin. However, systems that have not yet updated remain fully exposed.
Security experts warn that organizations using third-party email integrations should assume potential compromise if they were running vulnerable versions during the exploitation window. The recommended response includes immediate credential rotation, system audits, and log analysis.
Server logs should be reviewed for suspicious requests targeting the vulnerable REST endpoint, especially those containing the gravitysmtp-settings parameter.
What Undercode Say:
The vulnerability highlights a classic failure in REST API permission enforcement.
Even medium severity flaws can become critical when authentication is bypassed.
WordPress plugin ecosystems remain a primary attack surface globally.
Attackers increasingly rely on automated scanning rather than targeted intrusion.
The presence of system report endpoints is a common but dangerous design pattern.
Exposure of configuration data removes the attacker’s need for reconnaissance.
API keys embedded in plugins are effectively long-term access tokens.
Email service abuse is one of the fastest monetization paths for attackers.
The exploit requires no authentication, increasing scalability of attacks.
REST endpoints should never default to public permission callbacks.
Debug or testing endpoints often remain unintentionally exposed in production.
WordPress plugins frequently accumulate legacy insecure endpoints.
Attack traffic spikes suggest coordinated botnet activity.
IP clustering indicates reusable infrastructure across multiple campaigns.
Logging and detection rules are essential for early identification.
Attackers prefer information disclosure before privilege escalation.
Exposed WordPress version data helps pinpoint secondary exploits.
Plugin enumeration accelerates vulnerability chaining.
Database metadata leakage can lead to targeted SQL injection attempts.
Document root exposure can reveal server misconfiguration.
PHP version data helps select compatible exploit payloads.
Large JSON dumps are often overlooked as low risk but are high value.
OAuth token leakage is equivalent to session hijacking.
Third-party integrations multiply attack impact surface.
Security updates are only effective if rapidly deployed.
Many sites delay plugin updates due to compatibility concerns.
Attackers exploit this delay window aggressively.
Wordfence telemetry shows industrial-scale exploitation attempts.
REST API security is still inconsistently implemented across plugins.
Default “true” permission callbacks remain a recurring coding flaw.
Security testing often misses internal diagnostic endpoints.
Plugin developers prioritize functionality over strict access control.
Attack automation reduces dependency on human targeting.
Credential rotation is as important as patching itself.
Historical exploit spikes align with vulnerability publication timing.
Attackers reuse infrastructure across multiple WordPress campaigns.
Server-side logs remain critical forensic evidence.
Information disclosure vulnerabilities often precede ransomware chains.
WordPress ecosystem remains attractive due to global footprint.
Prevention depends on layered defense, not plugin fixes alone.
✅ Gravity SMTP vulnerability (CVE-2026-4020) is a real information disclosure issue confirmed by Wordfence
❌ Severity is medium (CVSS 5.3), but real-world exploitation makes it operationally higher risk
⚠️ Exploit activity reaching millions of requests is consistent with large-scale botnet scanning reports
Prediction
(+1) Security patches like version 2.1.5 will gradually reduce exploitation success rates as updates propagate
(-1) Unpatched WordPress sites will continue to be harvested for credentials and system metadata
(-1) Attack automation will likely expand to other similar WordPress SMTP and logging plugins
Deep Analysis
Detect vulnerable Gravity SMTP plugin versions wp plugin list | grep gravitysmtp
Check installed version and status
wp plugin get gravitysmtp –field=version
Scan access logs for exploit attempts
grep "gravitysmtp/v1/tests/mock-data" /var/log/nginx/access.log
Filter requests with exploit parameter
grep "gravitysmtp-settings" /var/log/apache2/access.log
Identify suspicious IP traffic spikes
awk '{print $1}' access.log | sort | uniq -c | sort -nr | head
Check outbound email abuse indicators
grep "mail(" /var/log/php_errors.log
Monitor REST API exposure points
curl -s https://target-site.com/wp-json/
Audit WordPress configuration exposure risks
wp config get DB_NAME
wp config get DB_PASSWORD
▶️ Related Video (72% 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: thehackernews.com
Extra Source Hub (Possible Sources for article):
https://www.quora.com/topic/Technology
Wikipedia
OpenAi & Undercode AI
Image Source:
Unsplash
Undercode AI DI v2
🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]
📢 Follow UndercodeNews & Stay Tuned:
𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin | 🦋BlueSky | 🐘Mastodon | 📺Youtube




