CVE-2026-4020
Gravity SMTP <= 2.1.4 - Unauthenticated Sensitive Information Exposure via REST API
Description
The Gravity SMTP plugin for WordPress is vulnerable to Sensitive Information Exposure in all versions up to, and including, 2.1.4. This is due to a REST API endpoint registered at /wp-json/gravitysmtp/v1/tests/mock-data with a permission_callback that unconditionally returns true, allowing any unauthenticated visitor to access it. When the ?page=gravitysmtp-settings query parameter is appended, the plugin's register_connector_data() method populates internal connector data, causing the endpoint to return approximately 365 KB of JSON containing the full System Report. This makes it possible for unauthenticated attackers to retrieve detailed system configuration data including PHP version, loaded extensions, web server version, document root path, database server type and version, WordPress version, all active plugins with versions, active theme, WordPress configuration details, database table names, and any API keys/tokens configured in the plugin.
In plain language
AI Act nowGravity SMTP WordPress plugin versions up to 2.1.4 have a REST page that anyone on the internet can open to pull sensitive site and email settings, so you should treat this as urgent if your site uses Gravity SMTP.
Unauthenticated Sensitive Information Exposure in Gravity SMTP (up to 2.1.4) via a publicly accessible REST API endpoint that returns a detailed JSON “System Report” (including API keys/OAuth tokens and server/config details) to any visitor without login.
What to do now
- Check whether Gravity SMTP is installed on your WordPress site and identify its version.
- If Gravity SMTP is version 2.1.4 or older, plan an immediate upgrade to Gravity SMTP 2.1.5.
- After upgrading, verify that the suspicious public REST endpoint no longer returns the detailed “System Report” data without authentication.
- If you use Gravity SMTP credentials (API keys/OAuth tokens), rotate them in the plugin and any connected email services.
CVSS Vector Breakdown
AV:NAttack VectorAC:LAttack ComplexityPR:NPrivileges RequiredUI:NUser InteractionS:UScopeC:HConfidentialityI:NIntegrityA:NAvailabilityWeaknesses
Affected Products
Exploitability
Attack Graph
Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/⌘ + scroll to zoom, or go fullscreen.
MITRE ATT&CK
1 techniqueReferences
- Уязвимость в WordPress-плагине Gravity SMTP эксплуатируют хакерыru-ru·Хакер (xakep.ru)·
- Attackers Exploit Gravity SMTP Plugin Flaw to Harvest Valuable WordPress Dataen-us·SecurityWeek·
- ⚡ Weekly Recap: Browser Bugs, EDR Killers, TV Botnet, OpenBSD Flaw, Android Trojan, and Moreen·The Hacker News· Summary only·
- Hackers Exploit Gravity SMTP WordPress Plugin Bug to Expose API Keysen·The Hacker News·
- Hackers exploit info disclosure bug in Gravity SMTP WordPress pluginen-us·BleepingComputer·
- Active Gravity SMTP Vulnerability Exploited in the Wilden-us·Daily CyberSecurity (securityonline.info)·
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2026-4020 and every CVE in our database. Create a free account — no credit card required.
Create Free Account