Skip to main content
Vulnerability Database/CVE-2025-12018

CVE-2025-12018: MembershipWorks Plugin XSS Vulnerability

CVE-2025-12018 is a stored XSS vulnerability in the MembershipWorks WordPress plugin that allows administrators to inject malicious scripts. This article covers the technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-12018 Overview

CVE-2025-12018 is a Stored Cross-Site Scripting (XSS) vulnerability [CWE-79] affecting the MembershipWorks – Membership, Events & Directory plugin for WordPress. All versions through 6.14 fail to properly sanitize input and escape output within the plugin's admin settings. Authenticated attackers with administrator-level permissions can inject arbitrary JavaScript that executes when any user loads an affected page. The flaw is scoped to WordPress multi-site installations and single-site deployments where the unfiltered_html capability has been explicitly disabled, since standard administrators on default single-site installs already possess HTML posting rights.

Critical Impact

Authenticated administrators on multi-site or unfiltered_html-restricted WordPress installations can persist JavaScript payloads that run in the browser context of any user visiting the injected page.

Affected Products

  • MembershipWorks – Membership, Events & Directory plugin (memberfindme) for WordPress
  • All versions up to and including 6.14
  • Only exploitable on WordPress multi-site installations or sites where unfiltered_html is disabled

Discovery Timeline

  • 2025-11-12 - CVE-2025-12018 published to the National Vulnerability Database (NVD)
  • 2026-10-18 - Last updated in NVD database

Technical Details for CVE-2025-12018

Vulnerability Analysis

The vulnerability resides in the plugin's administrative settings handlers within memberfindme.php. Values submitted through the settings interface are stored and later rendered back into admin pages without sufficient sanitization on input or escaping on output. An authenticated administrator can submit a crafted setting value containing HTML or JavaScript. The payload persists in the WordPress database and executes whenever a user loads the page that reflects the stored value.

In standard WordPress single-site installations, administrators possess the unfiltered_html capability and can already inject arbitrary HTML. The security boundary therefore only applies in two contexts: multi-site networks, where only Super Admins hold unfiltered_html by default, and single-site installations that explicitly revoke the capability through configuration or hardening plugins. In those environments, a site administrator should not be able to introduce executable scripts, so the stored payload crosses a privilege boundary.

Root Cause

The root cause is missing input sanitization and missing output escaping on plugin administrative setting values. Referenced plugin source at memberfindme.php lines 103 and 437 processes and renders these values without applying WordPress sanitization helpers such as sanitize_text_field() or output escapers such as esc_attr() and esc_html().

Attack Vector

An authenticated attacker with administrator access on a vulnerable multi-site or unfiltered_html-restricted installation submits a malicious value through the plugin's admin settings. The payload is stored server-side and executes in the browser of any visitor who loads the page containing the injected setting. Successful exploitation can lead to session theft targeting Super Admins, administrative action forgery through the authenticated victim, redirection, or further client-side compromise.

See the GitHub Stored XSS Report and the Wordfence Vulnerability Listing for technical details.

Detection Methods for CVE-2025-12018

Indicators of Compromise

  • Plugin option values in wp_options or network options containing <script>, javascript:, or event handler attributes such as onerror= and onclick=
  • Unexpected outbound requests from administrator browsers to attacker-controlled domains shortly after loading plugin admin pages
  • Audit log entries showing modifications to MembershipWorks settings by non-Super-Admin accounts on multi-site networks

Detection Strategies

  • Query stored plugin settings for HTML tags or JavaScript patterns, focusing on options written by the memberfindme plugin
  • Review web server access logs for POST requests to wp-admin/admin.php or options.php targeting MembershipWorks settings paired with HTML-encoded script payloads
  • Correlate browser-side script errors or Content Security Policy (CSP) violations originating from /wp-admin/ pages with recent setting changes

Monitoring Recommendations

  • Enable WordPress audit logging to capture plugin configuration changes with user attribution
  • Monitor for new or modified site administrator accounts on multi-site networks
  • Alert on administrator sessions generating outbound requests to uncommon third-party domains during admin page loads

How to Mitigate CVE-2025-12018

Immediate Actions Required

  • Update the MembershipWorks plugin to a version released after 6.14 that includes the fix referenced in the WordPress Changeset for MemberFindMe
  • Audit all MembershipWorks settings for injected HTML or JavaScript and remove any unauthorized content
  • Review administrator accounts on multi-site networks and remove accounts that do not require elevated access

Patch Information

The vendor committed a fix in the plugin's trunk, visible in the WordPress Plugin Trac changeset referenced above. Administrators should upgrade through the WordPress plugin updater or by replacing the plugin directory with the patched release available on the MemberFindMe Plugin Overview page.

Workarounds

  • Deactivate the MembershipWorks plugin on multi-site networks until the patched version is installed
  • Restrict administrator access to trusted users only and enforce multi-factor authentication for all admin and Super Admin accounts
  • Deploy a Content Security Policy (CSP) that disallows inline scripts in /wp-admin/ to limit the impact of stored payloads
bash
# Update the plugin via WP-CLI once a patched release is available
wp plugin update memberfindme

# Verify the installed version
wp plugin get memberfindme --field=version

# On multi-site, confirm which users hold unfiltered_html
wp user list --network --fields=ID,user_login,roles

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.