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

- **ID:** WPSEC-2026-3678
- **Plugin:** Import and export users and customers (`import-users-from-csv-with-meta`), https://wordpress.org/plugins/import-users-from-csv-with-meta/
- **Affected versions:** all versions before 3.2.2
- **Fixed in:** 3.2.2 (Update to 3.2.2 or later.)
- **Severity:** Medium 4.4 (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:N)
- **Weakness:** CWE-862
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/import-users-from-csv-with-meta
- **Fix released:** 2026-11-20
- **Published:** 2026-11-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3678/

## 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

- https://wpsec.com/vuln/WPSEC-2026-3678/
- https://plugins.svn.wordpress.org/import-users-from-csv-with-meta/tags/3.2.2/
- https://wordpress.org/plugins/import-users-from-csv-with-meta/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3678/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
