WP Mail SMTP vulnerability records and the credential, log and alert settings to read
WP Mail SMTP sends WordPress email through a mailer set up with credentials such as an SMTP password, an API key or token, or a Google sign-in.
Among the record titles filed under it is one ending "SMTP Password Exposure". Check the installed version against each record's fields, then see where the credentials are entered and who can open the email log.
On this page
WP Mail SMTP vulnerability history
Source: Wordfence Intelligence (Vulnerability Data Feed v3, Production), retrieved on . It lists 2 records for WP Mail SMTP. Copyright notices, licence terms and a link to each source record are under Data source and licence at the foot of this page.
Update to at least version 4.1.0
Worked out from data retrieved on .
Every affected range listed in this source for WP Mail SMTP ends before version 4.1.0.
A vendor can publish a security release before this source records it. Read the plugin's own changelog as well as this history.
WP Mail SMTP <= 4.0.1 - Authenticated (Admin+) SMTP Password Exposure
- Published:
- Last updated:
- Severity:
- Low (CVSS 2.7)
- CVE:
- CVE-2024-6694
Affected versions- All versions up to and including 4.0.1
Patched versions: 4.1.0
Update to at least version 4.1.0.
WP Mail SMTP by WPForms <= 1.3.3 - Unspecified Cross-Site Scripting
- Published:
- Last updated:
- Severity:
- Medium (CVSS 6.4)
Affected versions- All versions before 1.4.0
Patched versions: 1.4.0
Update to at least version 1.4.0.
Check WP Mail SMTP on a live site
Read-only checks for a site you own or are authorised to review. Each step uses the WordPress dashboard or WP-CLI and sends no test payloads to the site.
What WP Mail SMTP holds: mailer credentials, outgoing email and logs
The plugin's WordPress.org listing says it reconfigures the wp_mail() function to use proper SMTP host credentials or an SMTP mail provider.
It says that when WordPress sends an email, the message (recipients, subject, content, headers and attachments) and the credentials you entered are sent to the provider of the mailer you choose in WP Mail SMTP > Settings.
For "Other SMTP" the listing's options include a host, port, encryption and an SMTP username and password. For the direct mailer integrations, such as SendLayer, Mailgun and SendGrid, its FAQ says you never enter your username or password in the plugin settings, and the plugin uses tokens or API keys instead. For Gmail, it says the plugin uses OAuth, so your Google password is never stored on your site.
The vendor's constants guide says that when settings are available in the WordPress admin area, any administrator on the site can see and edit those details, and the values are stored in the database too. The listing calls WP Mail SMTP Pro a separate paid plugin and puts the email log and email alerts in Pro.
The WP Mail SMTP records: a password title, a script title and overlapping ranges
CVE-2024-6694 has a title ending "Authenticated (Admin+) SMTP Password Exposure", rated Low (CVSS 2.7) in the source data.
Its affected versions field reads all versions up to and including 4.0.1, and its patched versions field lists 4.1.0. The fields say nothing about the versions between the two, so for that record the patched version is the one to reach.
A record with no CVE id has a title ending "Unspecified Cross-Site Scripting", rated Medium (CVSS 6.4). Its title calls the plugin "WP Mail SMTP by WPForms" and carries "<= 1.3.3", while its affected versions field reads all versions before 1.4.0, with 1.4.0 patched. Match on the fields.
That patched version, 1.4.0, sits inside the range of CVE-2024-6694, so reaching a record's patched version can leave a site inside another record's range. Compare the installed version with every affected range in the history on this page, then read the update guidance at the top of the history.
Some entries in the changelog on the plugin's WordPress.org listing mark security work in the vendor's own words, such as "Hardened permission checks and request handling across several admin features to address potential security issues". Read that changelog beside the records before relying on the guidance.
Five read-only checks on a WP Mail SMTP site
Each check reads a setting and writes it down, on a site you are authorised to review.
Leave every screen unsaved, and keep passwords, API keys, tokens and webhook addresses out of your notes. The listing says opening a WP Mail SMTP admin page after a failed send downloads a public list of help articles, without your site's details, and that clicking "Let's Get Started" in the Setup Wizard sends your site URL details. Leave the wizard closed.
The Plugins screen page in WordPress's documentation puts the version number in each plugin's Description column. Write down every WP Mail SMTP row, its version and whether it is active. The vendor's installation guide says Pro is uploaded as a zip file under Plugins » Add New, and WordPress notes that a plugin installed from a ZIP file shows an update notice only if its author includes a built-in updater.
The listing says you choose the mailer in WP Mail SMTP > Settings. Write down which one is selected. The constants guide has you add constants to wp-config.php and says that on WP Mail SMTP » Settings, fields using constants are disabled and appear greyed out.
Note which fields are greyed out, and whether the password field is one of them, without revealing any value. For Pro, the listing describes a Backup Connection, an extra connection that kicks in if the primary connection fails, and Smart Conditional Routing, which sends different types of emails using different mailers. Record the mailer each one uses.
The debugging guide puts Debug Events on the "Debug Events" tab of WP Mail SMTP » Tools. It says "Email Sending Errors" is enabled by default and cannot be turned off, and that "Debug Email Sending" records all the activity when the site sends an email. Note whether it is ticked. The guide says it is considered best practice, for security purposes, to leave debugging off outside troubleshooting.
On Pro, the logging guide puts the log settings on the "Email Log" tab of WP Mail SMTP » Settings. Record "Enable Log", "Log Email Content", "Save Attachments" and the "Log Retention Period", which it says is set to Forever by default.
The guide warns that email content may include sensitive information, such as user login credentials, and that with "Log Email Content" on, all email content is stored as plain text (not encrypted) in the database.
The vendor's developer guide says the manage_options capability is selected by default for viewing and managing email logs, and gives snippets, recommended through WPCode, that change it. Look for one in the site's custom code and write down the capability it names. On multisite, the listing says Pro lets Network Admins view and manage email logs for subsites.
The alerts guide, bannered as a Pro feature, puts alerts on the "Alerts" tab of WP Mail SMTP » Settings. It says that by default you are notified through the configured channels whenever the site fails to send an email, and its channels include "Email", "Slack", "Webhooks" and "WhatsApp".
Write down which are on and who each reaches, leaving webhook addresses out. Leave "Test Alerts" alone: the guide says the alert test will trigger all the services you configured.
The miscellaneous settings guide puts "Hide Email Delivery Errors" on the "Misc" tab of WP Mail SMTP » Settings and says turning it on hides the alerts about unsuccessful deliveries from the plugin page. Record whether it is on.
The test email guide puts the test on the "Email Test" tab of WP Mail SMTP » Tools and says clicking "Send Email" also checks the "From Email" domain with an API, unless that address is on a free email provider's domain such as gmail.com.
The listing says Tools > Site Health shows the result of your last domain check. Read the result there and leave "Send Email" alone. The listing also says a deliverability test on the "Email Detective" page sends a test email through your mailer.
As a starting list of who may reach these tabs, write down the accounts the Administrator filter link on the Users screen shows. The changelog records a filter added to customise the capability required for managing the plugin. Ask the site's developer whether any code uses it.
What a version match cannot show about WP Mail SMTP
A version outside every affected range says nothing about whether the SMTP password sits in wp-config.php or the database, whether "Log Email Content" keeps message bodies, which capability opens the email log, or who receives the alerts.
A version inside a range shows exposure to a known record, not whether anyone used it.
The vendor's miscellaneous settings guide says deleting the plugin with the Delete option on the Plugins page keeps your settings, email logs and saved keys, and that removing them takes switching on "Uninstall WP Mail SMTP" first. A WordPress security audit looks for any plugin that logs outgoing email, because a readable log of reset emails is a list of reset links, and confirms that only administrators can read it.
Frequently asked questions
Check the fields, not the title. CVE-2024-6694 lists all versions up to and including 4.0.1 as affected and 4.1.0 as patched. Compare the installed version with every range in the history on this page, since the Cross-Site Scripting record's patched version, 1.4.0, falls inside that range.
The records here are the ones the source data files under the slug wp-mail-smtp, and being filed there does not settle whether a record also applies to Pro. The listing says Pro is a separate paid plugin. The vendor's installation guide says Pro is uploaded as a zip file under Plugins » Add New, and that the Lite version can be deleted once you have upgraded.
The listing's FAQ says the "Other SMTP" mailer offers the option to put the password in wp-config.php, so it is not visible in your WordPress settings or saved in the database. The vendor's constants guide says that when settings are available in the WordPress admin area, the values are stored in the site's database.
The listing says a domain check runs when you send a test email and at the end of the Setup Wizard, and that it sends your From email address, mailer and sending domain to the vendor's WP Mail SMTP Connect service to check your domain's DNS records. The listing adds that requests to WP Mail SMTP services also identify the plugin version and, if usage tracking is turned on, include your WordPress version, site URL and licence type. It says Tools > Site Health shows the result of your last check. A review can read that result without sending anything.
Scope the right test for your application
Tell us what you have built, who uses it and when it needs to launch. You will get a plain-English recommendation: a website audit, a web application test or a referral to a specialist.
Data source and licenceHide the data source and licence
The vulnerability records on this page come from Wordfence Intelligence (Vulnerability Data Feed v3, Production), retrieved on . The records contain material that is subject to copyright. Each copyright notice and its licence are reproduced once below, followed by a link to every source record.
Copyright 2012-2026 Defiant Inc.
Applies to every record listed below.
Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy.
Copyright 1999-2026 The MITRE Corporation
Applies to 1 of the 2 records listed below.
CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.