Themehunk Login Registration <= 1.0.2 - Unauthenticated Privilege Escalation via 'role' Parameter

6.3
Improper Privilege Management
CVE CVE-2026-14250
CVSS 6.3 (Medium)
Publicly Published July 7, 2026
Last Updated July 8, 2026
Researcher Chi Trung Huynh - Duy Tan Universiy

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.

References

Share

Vulnerability Details for TH Login Registration

Software Type Plugin
Software Slug themehunk-login-registration (view on wordpress.org)
Patched? Yes
Remediation Update to version 1.0.3, or a newer patched version
Affected Version
  • <= 1.0.2
Patched Version
  • 1.0.3

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation