The Plugin That Turned WordPress Diagnostics into an Attack Surface
A widely used SMTP add-on exposed environment data through an unauthenticated endpoint, and the rush to probe it shows how quickly “support” features can become reconnaissance tools.
WordPress sites often rely on plugins to do quiet, unglamorous work in the background. That convenience can become a liability when a diagnostic feature is left reachable by anyone on the internet. In this case, a mail-delivery plugin used by more than 100,000 installs became a high-interest target after a sensitive information exposure flaw was publicly disclosed.
Fast Facts
- Gravity SMTP is a WordPress email plugin used for outgoing mail delivery.
- The affected bug is an unauthenticated information-disclosure issue in versions up to 2.1.4.
- The flaw is mapped to CVE-2026-4020 and was patched in 2.1.5.
- The reachable path was tied to a REST API diagnostic endpoint at /wp-json/gravitysmtp/v1/tests/mock-data.
- Telemetry linked to the flaw shows more than 17 million blocked exploit attempts after disclosure, with a peak on June 7, 2026.
Why this bug drew attention so fast
The core problem was not code execution. It was exposure. Gravity SMTP’s diagnostic workflow could surface a System Report, the kind of artifact support teams use to troubleshoot a site’s setup. In practice, that can reveal WordPress version data, active plugins, server and PHP details, and, depending on configuration, mail-service secrets or tokens. For an attacker, that is enough to map a target before trying anything louder.
The technical failure was simple but serious: an unauthenticated REST endpoint with a permission check that did not restrict access properly. That matters because internet-wide scanners do not need a foothold if the door is already open. Once a flaw like this is known, bulk probing usually follows, and the volume can rise faster than many administrators can patch.
From a defensive perspective, the case is a reminder that disclosure bugs can be more useful to criminals than flashy exploits. Leaked environment details can help identify weak versions, guess adjacent services, and collect credentials that may work elsewhere. If SMTP keys or API tokens were present, the risk can extend beyond the WordPress site itself to outbound email infrastructure and any systems that trust those credentials.
At the time of writing, public information does not fully establish the technical root cause beyond the disclosure flaw, the complete scope of affected users, or whether downstream systems were compromised. The available evidence supports a risk analysis, not a definitive claim of broad breach.
For administrators, the immediate lesson is practical: patch first, then rotate any secrets that could have been exposed, and review logs for requests to the diagnostic path. The broader lesson is harder to ignore. In plugin ecosystems, even a support feature can become a reconnaissance oracle when access control is loose.
Conclusion
The real danger here is not that a plugin exists, but that operational convenience often hides sensitive detail in places attackers know to look. In modern WordPress security, a small disclosure bug can become a large intelligence leak, and that is often enough to start the next phase of an intrusion.
TECHCROOK
hardware security key: A hardware security key adds a second factor to admin, email, and hosting logins, reducing reliance on reusable passwords. It is a practical fit for WordPress operators who manage plugins, mail services, and support accounts from the same environment. Use it alongside strong unique passwords and recovery codes.
WIKICROOK
- REST API: A web interface that lets applications request data or actions over standard HTTP methods.
- Information Disclosure: A flaw that reveals sensitive data to people who should not see it.
- Permission Callback: A function that decides whether a request should be allowed to access an endpoint.
- System Report: A troubleshooting summary that can include software versions, server details, and plugin data.
- Credential Rotation: Replacing passwords, keys, or tokens after exposure risk to limit reuse by attackers.



