Suped

Gravity SMTP flaw exposes email sending credentials during mass exploitation

News
Matthew Whittaker profile picture
Matthew Whittaker
Co-founder & CTO, Suped
Published 18 Jun 2026
Updated 18 Jun 2026
9 min read
Summarize with
Editorial thumbnail for the Gravity SMTP credential exposure incident.
Gravity SMTP users running version 2.1.4 or older need to update to 2.1.5 or later, then treat any configured mail sending credentials as exposed. Wordfence says attackers are actively exploiting CVE-2026-4020, a sensitive information exposure flaw in the WordPress plugin, and that exploitation has reached mass scale.
The Wordfence report published on June 17, 2026 says the plugin has about 100,000 active installations, affected versions are Gravity SMTP 2.1.4 and older, and the patched version is 2.1.5. Wordfence also says its firewall has blocked more than 17 million exploit attempts, with exploitation ramping in early June and the largest spike on June 7, 2026.
This incident matters because the exposed data is not only WordPress configuration data. The vulnerable endpoint can return email integration API keys, secrets, and OAuth tokens, which can let an attacker send through legitimate mail services already trusted by your domain.
  1. Patch: Update Gravity SMTP to 2.1.5 or later before rotating credentials.
  2. Rotate: Replace exposed API keys, SMTP secrets, and OAuth tokens.
  3. Verify: Check mail provider logs, DMARC aggregate reports, bounces, and blocklist or blacklist signals.

What happened

CVE-2026-4020 is an unauthenticated sensitive information exposure issue in Gravity SMTP, a WordPress plugin used to connect sites to external email delivery providers. The operational risk is simple: a public request can reach a REST API endpoint that was meant for mock data, and with the right query parameter the response can include a system report containing configured mail integration credentials.
The request path that matters is the Gravity SMTP REST route for mock data, combined with the settings page parameter. On a vulnerable site, that request can expose connector data that includes API keys and OAuth tokens for services Wordfence names, including Amazon SES, Google, Mailjet, Resend, and Zoho.
Vulnerable request patternHTTP
GET /wp-json/gravitysmtp/v1/tests/mock-data?page=gravitysmtp-settings Host: affected-wordpress-site.example

Item

Detail

CVE
CVE-2026-4020
Affected
Gravity SMTP 2.1.4 and older
Patched
Gravity SMTP 2.1.5
Install base
About 100,000 active installs
Attempts
More than 17 million blocked
Peak
Largest spike on June 7, 2026
Incident facts operators should verify first.
I would not wait for proof of mailbox compromise before rotating credentials. The endpoint can leak secrets without changing site content, creating accounts, or leaving an obvious WordPress admin trail. Access logs and provider logs become the main evidence sources.

Why email credentials make this worse

A normal plugin information leak can disclose versions, paths, database metadata, and other reconnaissance value. That is still a problem. This flaw has a sharper email risk because API keys and OAuth tokens can give an attacker the ability to send mail through services your organization already authorized.
Typical site data exposure
  1. Recon: Reveals plugin versions, server details, paths, and configuration clues.
  2. Follow-on: Helps attackers choose later attacks against the same WordPress site.
  3. Evidence: Often shows up only in web access logs and error telemetry.
  4. Scope: Usually starts with the affected site and its hosting stack.
Mail credential exposure
  1. Sending: Lets attackers send through trusted integrations tied to your domain.
  2. Reputation: Can damage IP and domain reputation if abuse leaves through real providers.
  3. DMARC: Creates noisy aggregate reports with unfamiliar sources or sudden volume jumps.
  4. Controls: Can trigger provider abuse limits, bounces, suspensions, and blacklist listings.
This is where DMARC operators need to look beyond the WordPress patch. A stolen key can create mail that passes authentication if the sending service is already permitted by SPF or signs with a valid DKIM identity. DMARC then reports the traffic as authenticated, even when the mail was not authorized by the business process that should control that source.
Flowchart showing how a vulnerable plugin can lead to exposed mail credentials and DMARC review.
Flowchart showing how a vulnerable plugin can lead to exposed mail credentials and DMARC review.

Who needs to act

The affected group is specific: WordPress site owners and operators using Gravity SMTP 2.1.4 or older, especially sites with third party mail delivery integrations configured. If the plugin is installed but unused, still update it. If it has stored credentials for a mail provider, treat the incident as a credential exposure until logs show otherwise.
  1. Site owners: Check the installed Gravity SMTP version in WordPress and update to 2.1.5 or later.
  2. Agencies: Search all managed WordPress sites, not only sites reporting mail failures.
  3. Mail admins: Review provider logs for spikes, new campaigns, new sender identities, and new API calls.
  4. Security teams: Preserve web access logs before rotation work removes useful correlation windows.
  5. Deliverability teams: Watch complaint rates, bounce patterns, domain reputation, and blocklist or blacklist results.
Do not assume the absence of visible spam in WordPress means the credentials were not used. If attackers send directly through an external mail API, the WordPress site can look normal while the mail provider shows the abuse.
I prioritize externally facing production sites first, then staging sites with real credentials, then inactive sites that still have valid tokens. Old staging sites are easy to miss because they often receive fewer plugin updates while still carrying live mail keys.

How to investigate exposure

Start with web access logs. You are looking for requests to the mock-data endpoint, especially requests that include the page parameter for the Gravity SMTP settings view. The request is a read-only GET, so the absence of POST actions, admin logins, or changed content does not clear the site.
Access log searchesBASH
grep -F "/wp-json/gravitysmtp/v1/tests/mock-data" access.log* grep -F "page=gravitysmtp-settings" access.log*
If your logs are split across a CDN, load balancer, web server, and application stack, search each layer. CDN logs can show requests blocked upstream. Origin logs can show requests that reached WordPress. Provider logs can show whether stolen credentials were used after the endpoint was hit.
  1. Version: Record the Gravity SMTP version before updating if your change process requires evidence.
  2. Endpoint: Search for the REST route and the settings page query parameter together.
  3. Timing: Check early June closely, with special attention to June 7 through June 11, 2026.
  4. Identity: Compare source IPs, user agents, and request counts across all affected sites.
  5. Mail: Match suspicious web requests against mail API sends, SMTP logins, and OAuth activity.
?

What's your domain score?

Deep-scan SPF, DKIM & DMARC records for email deliverability and security issues.

A domain health check does not prove whether the Gravity SMTP endpoint was exploited, but it gives a fast view of DNS authentication state before and after remediation. That helps separate a credential exposure problem from an existing SPF, DKIM, or DMARC configuration problem.

How to rotate and validate mail credentials

Patch first, then rotate. If you rotate credentials while the vulnerable endpoint remains reachable, the new credentials can be exposed again. After updating Gravity SMTP, replace every credential configured inside the plugin, including API keys, SMTP passwords, OAuth client secrets, and active OAuth tokens where the provider allows revocation.
Rotation order
  1. Update: Install Gravity SMTP 2.1.5 or later across production, staging, and copied sites.
  2. Revoke: Disable old API keys, SMTP passwords, and OAuth tokens in the mail provider account.
  3. Replace: Configure fresh credentials in Gravity SMTP and test normal site mail.
  4. Review: Look for unauthorized sending, new sender identities, unusual recipients, and suppressed mail.
  5. Document: Record the vulnerable version, exposure window, credentials replaced, and mail logs checked.
After rotation, send a controlled message through the affected WordPress path and inspect the result with an email tester. The point is not only that the message delivers. Confirm that SPF, DKIM, and DMARC pass as expected, and that the source shown in the headers is the source you intend to keep.
Incident note templateTEXT
Site: Gravity SMTP version before patch: Patched version: Endpoint hits found: First suspicious request: Last suspicious request: Credentials rotated: Provider logs reviewed: DMARC sources checked: Blocklist checks completed:
For OAuth-based integrations, revocation matters as much as replacing local settings. A token can remain valid outside WordPress until the provider revokes it or it expires. If your provider exposes token grants, connected apps, API activity, or security event logs, review those records around the same time window as the web access logs.

What to watch in DMARC and deliverability

The mail side of the response is about finding whether a trusted sending path was abused. DMARC aggregate reports are useful because they show sources sending as your domain, authentication pass rates, alignment results, and volume changes. They do not show message bodies, so pair them with provider logs and abuse notifications.
Suped's DMARC monitoring helps here by turning aggregate reports into source-level views, authentication issues, and alerts for new or failing senders. For this incident, I would use that workflow to compare normal WordPress mail volume against sudden traffic from sources that were not part of the approved sending map.
Suped DMARC dashboard showing email volume, authentication health, and source breakdown
Suped DMARC dashboard showing email volume, authentication health, and source breakdown
Also watch for blocklist and blacklist impact. Unauthorized sending through a legitimate provider can still produce complaints, spam-trap hits, hard bounces, and throttling. Suped's blocklist monitoring gives teams one place to track IP and domain listing signals while they clean up credentials and confirm that sending has returned to normal.
Post-incident monitoring thresholds
Use these practical bands to decide how aggressively to investigate mail signals after credential rotation.
Normal
No action
Known senders, expected volume, aligned SPF or DKIM, and no listing changes.
Warning
Review logs
New source, sudden volume jump, new bounces, or an authentication failure pattern.
Critical
Escalate
Confirmed unauthorized sending, revoked credentials still used, or new blocklist listing.
Unknown
Assume risk
No logs, missing DMARC data, or provider history unavailable for the exposure window.
The strongest practical setup after this type of incident is a single view of DMARC, SPF, DKIM, sender inventory, alerting, and blocklist checks. Suped is our DMARC and email authentication product for that workflow, including automated issue detection, hosted DMARC, hosted SPF, SPF flattening, hosted MTA-STS, real-time alerts, and MSP dashboards for teams managing many domains.

What matters now

Treat CVE-2026-4020 as a mail credential exposure incident, not only a WordPress plugin update. The fix starts with Gravity SMTP 2.1.5 or later, but the real work is confirming whether credentials were exposed, rotating anything that was stored in the plugin, and checking whether legitimate mail services were used outside normal sending patterns.
The minimum response is patch, log review, credential rotation, provider log review, DMARC source review, and blocklist or blacklist monitoring. If any part of that evidence is missing, assume the exposed credentials were usable and remove that risk by revoking them.

Frequently asked questions

DMARC monitoring

Start monitoring your DMARC reports today

Suped DMARC platform dashboard
What you'll get with Suped
Real-time DMARC report monitoring and analysis
Automated alerts for authentication failures
Clear recommendations to improve email deliverability
Protection against phishing and domain spoofing