Description
The Themehunk Login Registration plugin for WordPress is vulnerable to privilege escalation in versions up to, and including, 1.0.2. This is due to the handle_frontend_register() function in the unauthenticated /thlogin/v1/register REST endpoint accepting a user-controlled 'role' parameter and validating it only against get_editable_roles() — which returns every defined editable site role, including 'editor' — before passing it to wp_insert_user(). This makes it possible for unauthenticated attackers, when public user registration is enabled, to create new accounts with the editor role.
Published: 2026-07-08
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Themehunk Login Registration plugin contains a REST endpoint that accepts a user supplied 'role' parameter when a new account is created. The code verifies the supplied role only against the list of editable roles, which includes the editor role. When this value is passed to the user creation function, an attacker can create a new account with editor privileges. This flaw is a CWE-269 Incorrect Privilege Assignment vulnerability, allowing the attacker to gain the ability to edit and publish content and access administrative features reserved for administrators.

Affected Systems

WordPress sites using the Themehunk Login Registration plugin version 1.0.2 or earlier are at risk. The vulnerability pertains to any installation where the plugin is activated and public user registration is enabled.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity, while the EPSS score of less than 1% suggests a low immediate attack likelihood. This flaw is not listed in the CISA KEV catalog. Exploitation is straightforward: an unauthenticated actor can send a POST request to the /thlogin/v1/register endpoint with a role such as editor and spawn a privileged account without authentication. Given the low entry barrier, prompt remediation is advised.

Generated by OpenCVE AI on July 29, 2026 at 14:28 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Themehunk Login Registration plugin to a release newer than 1.0.2 that restricts role assignment to the default subscriber role or implements stricter validation.
  • If an immediate upgrade is not possible, disable public user registration in WordPress to prevent unauthenticated account creation.
  • Restrict access to the /thlogin/v1/register REST endpoint so that only authenticated administrators can reach it, for example by adding a security‑oriented plugin rule or firewall rule.
  • As a temporary mitigation, modify the plugin or add custom code that validates the incoming 'role' parameter against a whitelist that contains only the 'subscriber' role.

Generated by OpenCVE AI on July 29, 2026 at 14:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 10 Jul 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Themehunk
Themehunk th Login Registration
Wordpress
Wordpress wordpress
Vendors & Products Themehunk
Themehunk th Login Registration
Wordpress
Wordpress wordpress

Wed, 08 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 08 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description The Themehunk Login Registration plugin for WordPress is vulnerable to privilege escalation in versions up to, and including, 1.0.2. This is due to the handle_frontend_register() function in the unauthenticated /thlogin/v1/register REST endpoint accepting a user-controlled 'role' parameter and validating it only against get_editable_roles() — which returns every defined editable site role, including 'editor' — before passing it to wp_insert_user(). This makes it possible for unauthenticated attackers, when public user registration is enabled, to create new accounts with the editor role.
Title Themehunk Login Registration <= 1.0.2 - Unauthenticated Privilege Escalation via 'role' Parameter
Weaknesses CWE-269
References
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'}


Subscriptions

Themehunk Th Login Registration
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-07-08T12:38:09.291Z

Reserved: 2026-06-30T14:19:53.767Z

Link: CVE-2026-14250

cve-icon Vulnrichment

Updated: 2026-07-08T12:38:03.885Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T14:30:03Z

Weaknesses
  • CWE-269

    Improper Privilege Management