Import and export users and customers <= 3.2.1 - Authenticated (Custom+) Missing Authorization to Administrator Role Demotion via Multisite User Import

Medium 4.4 CWE-862Fixed in 3.2.2
ID
WPSEC-2026-3678
Plugin
Import and export users and customers (import-users-from-csv-with-meta)
Affected
all versions before 3.2.2
Remediation
Update to 3.2.2 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-862
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-21
Attack surface
Import and export users and customers on WPSec AttackSurface
Fix released
Published

Description

The Import and export users and customers plugin for WordPress is vulnerable to unauthorized modification of user roles in all versions up to, and including, 3.2.1. This is due to the multisite step of the user import, which adds each imported user to the current site with add_user_to_blog() and so replaces their site role (with 'subscriber' when the caller may not assign roles), running without a 'promote_users' check and without the plugin's protected-role check. This makes it possible for authenticated attackers who have been granted the plugin's import capability ('create_users' by default) but not 'promote_users', such as a custom role on a multisite network that allows site administrators to add new users, to demote the site's administrators to subscribers by importing a CSV file with 'Update roles for existing users?' set to yes. Only WordPress multisite installations are affected.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON or Markdown · All advisories: JSON, RSS

License: CC BY 4.0