{"id":277014,"date":"2026-06-20T05:56:00","date_gmt":"2026-06-20T09:56:00","guid":{"rendered":"https:\/\/news-you-need.com\/index.php\/2026\/06\/20\/hackers-exploit-gravity-smtp-wordpress-plugin-bug-to-expose-api-keys\/"},"modified":"2026-06-20T11:10:12","modified_gmt":"2026-06-20T15:10:12","slug":"hackers-exploit-gravity-smtp-wordpress-plugin-bug-to-expose-api-keys","status":"publish","type":"post","link":"https:\/\/news-you-need.com\/index.php\/2026\/06\/20\/hackers-exploit-gravity-smtp-wordpress-plugin-bug-to-expose-api-keys\/","title":{"rendered":"Hackers Exploit Gravity SMTP WordPress Plugin Bug to Expose API Keys"},"content":{"rendered":"<p><a href=\"https:\/\/thehackernews.com\/2026\/06\/hackers-exploit-gravity-smtp-wordpress.html\">Hackers Exploit Gravity SMTP WordPress Plugin Bug to Expose API Keys<\/a><\/p>\n<p><a href=\"https:\/\/thehackernews.com\/2026\/06\/hackers-exploit-gravity-smtp-wordpress.html\">https:\/\/thehackernews.com\/2026\/06\/hackers-exploit-gravity-smtp-wordpress.html<\/a><\/p>\n<p>Publish Date: <a href=\"publish_date]\">2026-06-20 05:56:00<\/a><\/p>\n<p>Source Domain: <a href=\"thehackernews.com\">thehackernews.com<\/a><\/p>\n<p><span class=\"p-author\">\ue804<span class=\"author\">Ravie Lakshmanan<\/span>\ue802<span class=\"author\">Jun 20, 2026<\/span><\/span><span class=\"p-tags\">Vulnerability \/ Web Security<\/span><\/p>\n<p>Threat actors are exploiting a recently patched security flaw impacting Gravity SMTP, a WordPress plugin that&#8217;s installed on about 100,000 sites.<\/p>\n<p>The vulnerability, tracked as <strong>CVE-2026-4020<\/strong> (CVSS score: 5.3), is a medium-severity information disclosure flaw that can allow unauthenticated attackers to extract sensitive data, such as configuration data, API keys, secrets, and OAuth tokens configured for the plugin&#8217;s email integrations.<\/p>\n<p>&#8220;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,&#8221; Wordfence said.<\/p>\n<p>&#8220;When the ?page=gravitysmtp-settings query parameter is appended, the plugin&#8217;s register_connector_data() method populates internal connector data, causing the endpoint to return approximately 365 KB of JSON containing the full System Report.&#8221;<\/p>\n<p>As a result, an unauthenticated attacker can weaponize this issue to retrieve a wide range of information, including &#8211;<\/p>\n<ul>\n<li>PHP version<\/li>\n<li>Loaded extensions<\/li>\n<li>Web server version<\/li>\n<li>Document root path<\/li>\n<li>Database server type and version<\/li>\n<li>WordPress version<\/li>\n<li>All active plugins with versions<\/li>\n<li>Active theme<\/li>\n<li>WordPress configuration details<\/li>\n<li>Database table names<\/li>\n<li>API keys\/tokens configured in the plugin, such as Amazon SES, Google, Mailjet, Resend, and Zoho<\/li>\n<\/ul>\n<p>Attackers could then leverage this exposure to harvest credentials that could be abused to send email on behalf of the site, as well as glean extensive details of the site&#8217;s software stack, which could act as a foundation for follow-on attacks.<\/p>\n<p>&#8220;As with all sensitive information exposure vulnerabilities, the impact depends on what data is exposed,&#8221; Wordfence added. &#8220;In this case, the exposure of live third-party API credentials means an attacker could abuse the site&#8217;s connected email services, while the detailed system report significantly lowers the effort&#8230;<\/p>\n<p><a href=\"https:\/\/thehackernews.com\/2026\/06\/hackers-exploit-gravity-smtp-wordpress.html\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hackers Exploit Gravity SMTP WordPress Plugin Bug to Expose API Keys https:\/\/thehackernews.com\/2026\/06\/hackers-exploit-gravity-smtp-wordpress.html Publish Date: 2026-06-20&#8230;<\/p>\n","protected":false},"author":1,"featured_media":277015,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjL1kN23KhnFjdjHcR0i-iySK1Zv-kkApPs6yBq11670ubXx0NiAbgDMoYSfwQNyq9asso5AG9KcPRXEL4LU8-BmcsC0Q_1YIYDfY89hIFd_hSNJ2yZJRAO5l6JaQbpItuI8cpwIvNDBOqNfc-0d1DMv_DOh04J5_2EvpEcxCtoQUziipbjfNod-tzdH1__\/s1600\/1000082862.jpg","fifu_image_alt":"","footnotes":""},"categories":[15],"tags":[31,27],"class_list":["post-277014","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cybersecurity","tag-exploit","tag-vulnerability"],"_links":{"self":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/277014"}],"collection":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/comments?post=277014"}],"version-history":[{"count":1,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/277014\/revisions"}],"predecessor-version":[{"id":277016,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/277014\/revisions\/277016"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/media\/277015"}],"wp:attachment":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/media?parent=277014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/categories?post=277014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/tags?post=277014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}