# CVE-2026-104767: Membership & User Roles for WooCommerce (Automatic Role Changer) \<= 20260828 - Authenticated (Subscriber+) Privilege Escalation to Stale Foreign Role Cache

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.48% (percentile 34, 2026-11-28)
- **CWE:** CWE-269
- **Published:** 2026-10-14T01:27:14.736Z
- **Modified:** 2026-10-15T17:17:11.797Z

## Who should check

- Anyone running davefx Membership & User Roles for WooCommerce (Automatic Role Changer) \<= 20260828

## Description

The Membership & User Roles for WooCommerce (Automatic Role Changer) plugin for WordPress is vulnerable to Privilege Escalation in versions up to, and including, 20260828. This is due to the \`maybe\_add\_role\_to\_user()\` function unconditionally re-assigning every role stored in the \`dfxwcrc\_foreign\_roles\` user meta cache without verifying that each cached role is still actively assigned by the external provider — a condition made permanent by \`remember\_foreign\_roles()\`, which merges new foreign roles into the cache but never evicts roles that have since been revoked. This makes it possible for authenticated attackers with subscriber-level access and above to restore a previously revoked Administrator role to their own account, gaining full administrative control of the site, by triggering any role-assignment event such as completing a purchase for a role-mapped product. Exploitation requires Replace Roles mode to be enabled and the attacker's account to have previously received Administrator legitimately through a separate role-management mechanism while the plugin was active, so that \`administrator\` was written into the \`dfxwcrc\_foreign\_roles\` user meta cache before the external provider revoked it.

## Affected and fixed versions

- davefx Membership & User Roles for WooCommerce (Automatic Role Changer): \<= 20260828 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-104767. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-104767.md
Affected: davefx Membership & User Roles for WooCommerce (Automatic Role Changer) <= 20260828
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for davefx Membership & User Roles for WooCommerce (Automatic Role Changer): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-104767 being exploited?

There is no confirmed exploitation: CVE-2026-104767 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.48% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-104767?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-104767?

davefx Membership & User Roles for WooCommerce (Automatic Role Changer) \<= 20260828.

### Is there a fix for CVE-2026-104767?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-104767?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- wordfence: <https://www.wordfence.com/threat-intel/vulnerabilities/id/833d9f92-9af1-4332-9b1d-2d1d37073b4b?source=cve>
- other: <https://plugins.trac.wordpress.org/browser/dfx-woo-role-changer/trunk/dfx-woo-role-changer.php#L468>
- other: <https://plugins.trac.wordpress.org/browser/dfx-woo-role-changer/trunk/dfx-woo-role-changer.php#L427>
- other: <https://plugins.trac.wordpress.org/browser/dfx-woo-role-changer/trunk/dfx-woo-role-changer.php#L414>
- other: <https://plugins.trac.wordpress.org/browser/dfx-woo-role-changer/trunk/dfx-woo-role-changer.php#L351>
- other: <https://plugins.trac.wordpress.org/changeset?reponame=&old=3732550%40dfx-woo-role-changer&new=3732550%40dfx-woo-role-changer>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-104767>

HTML: <https://flawdb.com/CVE-2026-104767> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-104767>
