Up to 100,000 websites
A medium-severity information disclosure vulnerability in the Gravity SMTP plugin for WordPress, tracked as CVE-2026-4020, is under active and widespread exploitation. The flaw, affecting an estimated 100,000 websites, allows an unauthenticated attacker to retrieve a detailed system report containing sensitive credentials and configuration data. The vulnerability stems from an insecure REST API endpoint that fails to perform any authentication or authorization checks. Attackers are using this flaw to steal API keys and OAuth tokens for third-party email services. Security firm Defiant has reported blocking millions of exploit attempts, confirming that attackers are using automated scanners to find and compromise vulnerable sites. Users are urged to update to the patched version (2.1.5) immediately and rotate any credentials managed by the plugin.
CVE-2026-4020 is an unauthenticated information disclosure vulnerability with a CVSS score of 5.3.
/wp-json/gravitysmtp/v1/tests/mock-data, was configured with a permission callback that always returned true. This means that any request, regardless of authentication status, was granted access.https://<vulnerable-site>/wp-json/gravitysmtp/v1/tests/mock-data?page=gravitysmtp-settings. The plugin responds with a large JSON file containing the site's full system report. This report was likely intended for debugging purposes but was left publicly exposed.The vulnerability is being actively and widely exploited. WordPress security firm Defiant, makers of the Wordfence firewall, reported blocking over 17 million exploitation attempts targeting this flaw. This indicates that threat actors have integrated the exploit into automated scanning tools and are indiscriminately targeting any site running a vulnerable version of the plugin.
A successful exploit of this vulnerability provides an attacker with a wealth of sensitive information that can be used for further attacks:
The following patterns may help identify vulnerable or compromised systems:
url_pattern/wp-json/gravitysmtp/v1/tests/mock-dataurl_pattern?page=gravitysmtp-settingslog_sourceWeb Server Access Logsresponse_size~365 KB/wp-json/gravitysmtp/v1/tests/mock-data endpoint. Any such request should be treated as an indicator of targeting.Updating the plugin to the patched version is the primary and most effective remediation.
Mapped D3FEND Techniques:
Regularly audit installed plugins and their versions to ensure they are up-to-date and necessary.
Use a WAF to create a custom rule to block requests to the vulnerable API endpoint as a virtual patch.
Mapped D3FEND Techniques:
The definitive remediation for CVE-2026-4020 is to perform a software update. WordPress administrators must immediately navigate to their site's dashboard, go to the 'Plugins' section, and update the Gravity SMTP plugin to version 2.1.5 or higher. This action directly replaces the vulnerable code with the patched version, completely eliminating the insecure REST API endpoint. Given the active and widespread exploitation, this should be treated as an emergency change. Enabling automatic updates for plugins can help prevent such issues in the future, although it carries its own supply-chain risks. After updating, it is crucial to proceed with credential rotation as a follow-up step.
After updating the Gravity SMTP plugin, it is imperative to assume that all credentials managed by it have been compromised. This requires invalidating the old credentials. Log in to the dashboard of every third-party email service configured in the plugin (e.g., SendGrid, Mailgun, Postmark). Navigate to the API key or credentials section and revoke/delete the existing API key used by your WordPress site. Generate a new key and update the settings in the now-patched Gravity SMTP plugin with this new key. This action of invalidating the old 'authentication cache' (the stolen API key) ensures that even though attackers have the old key, it is now useless and cannot be used to abuse your email sending service.
As a defense-in-depth or virtual patching measure, use a Web Application Firewall (WAF) to block all inbound requests to the vulnerable endpoint. Create a custom rule that specifically blocks any HTTP GET requests where the URL path is /wp-json/gravitysmtp/v1/tests/mock-data. This provides an immediate layer of protection even before the plugin can be patched, and it will continue to protect against scanning traffic after the patch is applied. This filtering rule is highly specific and should have no impact on legitimate site functionality. It directly targets the exploit path used by attackers and is a recommended practice for any publicly disclosed vulnerability with a clear, static exploit pattern.
Gravity SMTP version 2.1.5 is released, patching the vulnerability.
Reports emerge of widespread, active exploitation of CVE-2026-4020.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.