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 for WordPress contains a REST endpoint that accepts a user supplied 'role' parameter during account creation. Validation of the supplied role is limited to the list of editable roles returned by the site, which includes 'editor'. When this value is forwarded to the user creation routine, an attacker can create a new account with editor privileges without authentication. This flaw grants the attacker the ability to edit, publish, and manage content that is normally restricted to administrators and provides access to a range of administrative actions.

Affected Systems

WordPress installations that have the Themehunk Login Registration plugin version 1.0.2 or earlier installed, with the plugin active and public user registration enabled, are vulnerable. The risk surface is limited to sites where the default settings allow new user registrations via the public REST endpoint.

Risk and Exploitability

The vulnerability carries a CVSS score of 6.3, indicating moderate severity, and an EPSS score below 1%, pointing to a low current exploitation probability. It is not listed in the CISA KEV catalog. Exploitation requires only unauthenticated POST requests to the /thlogin/v1/register endpoint, supplying a role such as 'editor'. The lack of additional prerequisites makes the attack path straightforward, enabling an adversary to create privileged accounts with minimal effort.

Generated by OpenCVE AI on August 1, 2026 at 16:34 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Themehunk Login Registration plugin to any release newer than 1.0.2 that limits role assignment to the default subscriber role or enforces stricter validation logic.
  • If an immediate upgrade is not possible, disable public user registration in WordPress so that new accounts can only be created by administrators.
  • Add a custom check that validates the incoming 'role' parameter against a whitelist containing only the 'subscriber' role before passing it to the user creation routine.
  • Restrict access to the /thlogin/v1/register REST endpoint so that only authenticated administrators can hit it, for example by using a firewall rule or a security plugin that blocks unauthenticated requests to that endpoint.

Generated by OpenCVE AI on August 1, 2026 at 16:34 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

Status : Deferred

Published: 2026-07-08T12:17:20.200

Modified: 2026-07-08T14:55:07.843

Link: CVE-2026-14250

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T16:45:03Z

Weaknesses
  • CWE-269

    Improper Privilege Management