{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-3811",
 "modified": "2026-11-24T18:51:16Z",
 "published": "2026-11-24T18:51:16Z",
 "summary": "ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce <= 2.0.0 - Authenticated (HR Manager+) Improper Privilege Management to User Role Replacement via Employee Creation",
 "details": "The ERP plugin for WordPress is vulnerable to improper privilege management via employee creation in all versions up to, and including, 2.0.0, due to an insufficient check before set_role() replaces all roles of an existing WordPress user who is added as an employee. The check only refused administrator and super admin accounts. This makes it possible for authenticated attackers with HR manager-level access and above to strip the roles of other non-administrator users they are not allowed to manage, such as editors or other managers, and make them plain employees.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:L"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "erp"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "0"
      },
      {
       "fixed": "2.0.1"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "all versions before 2.0.1"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-3811/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/erp/tags/2.0.1/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/erp/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-3811/",
  "cwe_ids": [
   "CWE-269"
  ],
  "vulnerability_type": "PRIV",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
