{"id":"CVE-2025-5953","aliases":["CVE-2025-5953"],"related":[],"kind":"vulnerability","state":"published","title":"WP Human Resource Management 2.0.0 - 2.2.17 - Missing Authorization to Authenticated (Employee+) Privilege Escalation via wp_ajax_hrm_insert_employee AJAX Action","summary":"The WP Human Resource Management plugin for WordPress is vulnerable to Privilege Escalation due to missing authorization in the ajax_insert_employee() and update_empoyee() functions in versions 2.0.0 through 2.2.17. The AJAX handler reads the client-supplied $_POST['role'] and, after basic cleaning via hrm_clean(), passes it directly to wp_insert_user() and later to $user->set_role() without verifying that the current user is allowed to assign that role. This makes it possible for authenticated attackers, with Employee-level access and above, to elevate their privileges to administrator.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The WP Human Resource Management plugin for WordPress is vulnerable to Privilege Escalation due to missing authorization in the ajax_insert_employee() and update_empoyee() functions in versions 2.0.0 through 2.2.17. The AJAX handler reads the client-supplied $_POST['role'] and, after basic cleaning via hrm_clean(), passes it directly to wp_insert_user() and later to $user->set_role() without verifying that the current user is allowed to assign that role. This makes it possible for authenticated attackers, with Employee-level access and above, to elevate their privileges to administrator.","source":"cvelist"},{"lang":"es","text":"El complemento WP Human Resource Management para WordPress es vulnerable a la escalada de privilegios debido a la falta de autorización en las funciones ajax_insert_employee() y update_empoyee() en las versiones 2.0.0 a 2.2.17. El controlador AJAX lee el $_POST['role'] proporcionado por el cliente y, tras una limpieza básica mediante hrm_clean(), lo pasa directamente a wp_insert_user() y posteriormente a $user-&gt;set_role() sin verificar que el usuario actual tenga permiso para asignar dicho rol. Esto permite que atacantes autenticados, con acceso de empleado o superior, eleven sus privilegios a administrador.","source":"nvd"}],"published":"2025-07-04T01:44:03.834Z","modified":"2026-06-17T09:49:05.650Z","severity":{"scorer":"Wordfence","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Wordfence","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-862"],"affected":[{"ranges":[{"type":"semver","introduced":"2.0.0","lastAffected":"2.2.17","status":"affected"}],"vendor":"asaquzzaman","product":"WP Human Resource Management","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.0.0","lastAffected":"2.2.17"}],"vendor":"mishubd","product":"wp_human_resource_management","cpe":"cpe:2.3:a:mishubd:wp_human_resource_management:*:*:*:*:*:wordpress:*:*","source":"nvd"}],"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/3ba33a18-429f-4a3e-b018-bdfbbe6e8482?source=cve","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://wordpress.org/plugins/hrm/#developers","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/hrm/tags/2.2.17/class/employee.php#L89","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/hrm/tags/2.2.17/class/employee.php#L543","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/hrm/tags/2.2.17/class/employee.php#L591","tags":["product"],"sources":["cvelist","nvd"]}],"credits":["Kenneth Dunn"],"assigner":"Wordfence","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-07-08T14:21:37.475Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-5953","url":"https://www.cve.org/CVERecord?id=CVE-2025-5953","licence":"CVE Terms of Use","modified":"2025-07-08T14:21:48.349Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-5953","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-5953","licence":"Public domain","modified":"2026-06-17T09:49:05.650Z"}],"updatedAt":"2026-11-25T22:59:00.584Z","epss":{"score":0.00461,"percentile":0.41653,"date":"2026-12-01T12:00:22.000Z"}}