Gravity SMTP <= 2.1.4 - Unauthenticated Sensitive Information Exposure via REST API

5.3
Exposure of Sensitive Information to an Unauthorized Actor
CVE CVE-2026-4020
CVSS 5.3 (Medium)
Publicly Published March 30, 2026
Last Updated May 13, 2026
Researcher Osvaldo Noe Gonzalez Del Rio (Os) - krei.dev | ogbuilders.io

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.

Wordfence blocked 751,926 attacks targeting this vulnerability in the past 24 hours.

References

Share

Vulnerability Details for Gravity SMTP

Software Type Plugin
Software Slug gravitysmtp
Patched? Yes
Remediation Update to version 2.1.5, or a newer patched version
Affected Version
  • <= 2.1.4
Patched Version
  • 2.1.5

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation