CVE-2026-4020
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe Gravity SMTP WordPress plugin has a REST API endpoint at /wp-json/gravitysmtp/v1/tests/mock-data with a permission_callback that returns true unconditionally, allowing unauthenticated access. When the ?page=gravitysmtp-settings parameter is included, it exposes approximately 365 KB of sensitive system configuration data including PHP version, database credentials, WordPress configuration, and API keys.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify if Gravity SMTP plugin is installedNavigate to WordPress admin > Plugins and look for 'Gravity SMTP' in the list of installed plugins, or check the /wp-content/plugins/ directory for a gravitysmtp folderAffected if The Gravity SMTP plugin appears in the installed plugins list
-
Determine the installed plugin versionIn WordPress admin > Plugins > Installed Plugins, click on the Gravity SMTP plugin to view its version number, or inspect the main plugin PHP file header for the Version fieldAffected if The installed version is 2.1.4 or lower (versions up to and including 2.1.4 are affected)
-
Verify the vulnerable REST API endpoint is accessibleSend a GET request to https://yourdomain.com/wp-json/gravitysmtp/v1/tests/mock-data?page=gravitysmtp-settings using curl or a browser while NOT logged inAffected if The request returns a 200 OK response with JSON data containing sensitive system configuration without requiring authentication
-
Check for sensitive data exposure in the endpoint responseExamine the response from the previous step - look for PHP version strings, database host/username/password fields, WordPress security keys, and API keys for external servicesAffected if The response contains database credentials, WordPress configuration details, PHP version information, or third-party API keys
If the Gravity SMTP plugin version is 2.1.4 or lower AND the /wp-json/gravitysmtp/v1/tests/mock-data?page=gravitysmtp-settings endpoint returns sensitive configuration data without authentication, the environment is affected by CVE-2026-4020.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpdate to a patched version of the Gravity SMTP plugin (after 2.1.4) that fixes the unrestricted REST API endpoint, or if no patch is available, implement firewall rules or access controls to block unauthorized access to the vulnerable endpoint.
Gravity SMTP version 2.1.5 or later
- Navigate to the WordPress admin dashboard
- Go to Plugins > Installed Plugins
- Locate the Gravity SMTP plugin
- Check if an update is available and update to the latest version (2.1.5 or higher)
- Alternatively, download the latest version from the WordPress plugin repository or from Gravity Forms' official website
- Verify the update was successful and the vulnerable endpoint is no longer accessible without authentication
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,984.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-4020 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-4020 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data