Skip to main content

Gravity Smtp CVE-2026-4020

| EUVDEUVD-2026-17277 HIGH
Information Exposure (CWE-200)
2026-03-31 Wordfence
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send unauthenticated HTTP request to REST API endpoint
  2. Exploit
    Append gravitysmtp-settings query parameter
  3. Execution
    Trigger register_connector_data() method
  4. Impact
    Retrieve 365 KB System Report JSON containing sensitive data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires Gravity SMTP plugin for WordPress versions up to 2.1.4 installed and activated. No authentication needed. Attacker makes unauthenticated HTTP GET request to /wp-json/gravitysmtp/v1/tests/mock-data?page=gravitysmtp-settings endpoint.

Impact

Real-world risk is HIGH despite the vulnerability requiring no exploitation sophistication. The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) indicates network-accessible, low-complexity attacks requiring no privileges or user interaction, scoring 7.5 due to high confidentiality impact. While no public exploit code exists and CISA KEV does not list this CVE as actively exploited, the attack is trivially automatable-attackers need only send HTTP GET requests to a predictable endpoint on WordPress sites running the plugin. The exposed System Report provides reconnaissance data ideal for multi-stage attacks: database server versions inform SQL injection attempts, plugin/theme inventories reveal additional vulnerable components, and leaked API keys/tokens enable immediate account compromise in connected third-party services (email providers, analytics platforms). The absence of authentication barriers makes mass scanning campaigns viable. Organizations using Gravity SMTP should treat this as an urgent patch priority, particularly if the plugin stores credentials for production email infrastructure.

Exploit ScenarioDerived

An attacker uses automated scanners to identify WordPress sites running the Gravity SMTP plugin by probing /wp-json/gravitysmtp/v1/tests/mock-data?page=gravitysmtp-settings across thousands of targets. Upon successful response, the attacker receives a 365 KB JSON payload containing the victim's PHP configuration, MySQL database version, complete plugin inventory, and SMTP API credentials for services like SendGrid or Mailgun. Using these stolen API keys, the attacker launches phishing campaigns through the victim's legitimate email infrastructure, leveraging the trusted domain reputation to bypass spam filters. Simultaneously, the exposed plugin versions reveal outdated components with known RCE vulnerabilities, enabling the attacker to escalate from information disclosure to full server compromise.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 31, 2026

Sensitive system configuration data exposure in Gravity SMTP for WordPress (all versions ≤2.1.4) allows unauthenticated remote attackers to retrieve comprehensive server information via an unsecured REST API endpoint. The /wp-json/gravitysmtp/v1/tests/mock-data endpoint lacks authentication controls, exposing ~365 KB of JSON containing PHP version, database credentials structure, WordPress configuration, plugin/theme inventories, and configured API keys/tokens. EPSS data not provided; no confirmed active exploitation (CISA KEV) or public exploit code identified at time of analysis, though the attack vector is trivial (CVSS AV:N/AC:L/PR:N).

RemediationAI

Update Gravity SMTP to the latest patched version immediately by accessing WordPress admin dashboard → Plugins → Installed Plugins, locating Gravity SMTP, and clicking Update. The official changelog at https://docs.gravitysmtp.com/gravity-smtp-changelog/ should list fixed versions (consult post-2.1.4 releases). If automatic updates are disabled, download the latest version from the WordPress plugin repository and manually replace the /wp-content/plugins/gravitysmtp/ directory. Until patching, implement a temporary workaround by blocking external access to /wp-json/gravitysmtp/v1/tests/mock-data via web server configuration (Apache .htaccess or Nginx location blocks) or a WordPress security plugin with REST API filtering capabilities. After updating, immediately rotate any API keys or SMTP credentials that were configured in the plugin prior to patching, as they may have been exposed. Review web server access logs for requests to /wp-json/gravitysmtp/v1/tests/mock-data?page=gravitysmtp-settings to identify potential prior exploitation. Additional technical details available in Wordfence Threat Intelligence report at https://www.wordfence.com/threat-intel/vulnerabilities/id/12a296db-ecc0-409b-8718-0c208504053a?source=cve.

Affected VersionsENISA

Gravity SMTP * ≤2.1.4

Affected Packages

euvd gravity_smtp no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) stems from improper access control in WordPress REST API endpoint registration. The Gravity SMTP plugin registers a diagnostic endpoint at /wp-json/gravitysmtp/v1/tests/mock-data with a permission_callback that unconditionally returns true, bypassing WordPress's authentication framework. When invoked with the query parameter ?page=gravitysmtp-settings, the register_connector_data() method in class-config-collection-service-provider.php populates and returns the plugin's complete System Report. This report aggregates environment metadata intended for internal diagnostics but exposed through the public REST API. The affected product (CPE: cpe:2.3:a:rocketgenius:gravity_smtp:*:*:*:*:*:*:*:*) is a WordPress plugin written in PHP that manages SMTP email delivery configurations, making API credential exposure particularly critical for attackers conducting reconnaissance or lateral movement.

Know when Gravity Smtp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Gravity SMTP for WordPress versions 2.1.4 and below expose sensitive server configuration data-including database credentials, API keys, and plugin inventories-through an unauthenticated REST API endpoint accessible to any remote attacker. This vulnerability eliminates a critical layer of defense against reconnaissance attacks and credential compromise, directly increasing risk of subsequent data breaches and system compromise across all affected WordPress installations.

Business Impact: High
Compensating Controls

Until vendor patch is released: (1) Restrict unauthenticated access to all /wp-json/ endpoints using web application firewall rules or HTTP authentication; (2) Disable REST API entirely if not required via WordPress configuration (define('REST_API_ENABLED', false)); (3) Implement network-level filtering to block external access to affected WordPress instances; (4) immediately rotate all exposed credentials (database passwords, API keys, tokens) in the returned JSON output; (5) monitor access logs for GET requests to /wp-json/gravitysmtp/v1/tests/mock-data and investigate any hits.

Threat Intelligence Overview

EPSS Score
0.1%
Top 84% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy