RocketGenius Gravity SMTP
Gravity SMTP <= 2.1.4 - Unauthenticated Sensitive Information Exposure via REST API
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- <= 2.1.4
Mitigation
The record names no fix. Check the vendor advisory below.
References
- Release notes docs.gravitysmtp.com/gravity-smtp-changelog
Timeline
Days relative to CVE publicationFirst public PoC 8 h after publication; not in CISA KEV. First PoC: nuclei template: Gravity SMTP WordPress Plugin - Sensitive Information Exposure (nuclei template, 31 Mar 2026).
PoC repositories
Found on GitHub.1 PoCs · 1 suspicious or fake
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| faizdotid/CVE-2026-4020 | 30 Jun 2026 +91 d | 0 | PoC |
Suspicious or fake 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| HORKimhab/CVE-2026-4020 | 22 Jun 2026 +83 d | 0 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Gravity SMTP WordPress Plugin - Sensitive Information Exposure | 31 Mar 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /wp-json/gravitysmtp/v1/tests/mock-data
- Query
page=gravitysmtp-settings- Key headers
Accept: application/json- Ports
- 80, 443
- PoC User-Agent
Mozilla/5.0 (compatible; CVE-2026-4020-scanner/1.0)- Seen in
- 1 repo: faizdotid/CVE-2026-4020
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/wp-json/gravitysmtp/v1/tests/mock-data\?(?:.*&)?page=gravitysmtp-settings
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [80,443] (msg:"GG PoC-Monitor CVE-2026-4020 RocketGenius Gravity SMTP exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/wp-json/gravitysmtp/v1/tests/mock-data"; http.uri; content:"page=gravitysmtp-settings"; http.header; content:"Accept: application/json"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-4020; classtype:web-application-attack; sid:9073191; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: RocketGenius Gravity SMTP exploit attempt (CVE-2026-4020)
id: gg-pocmon-cve-2026-4020-9073191
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-4020. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-4020
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/wp-json/gravitysmtp/v1/tests/mock-data'
cs-uri-query|contains|all:
- 'page=gravitysmtp-settings'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.4020