Vearch versions 3.5.2 through 3.5.9 have an authorization vulnerability in the Role.HasPermissionForResources function. This flaw causes the system to ignore stored ReadOnly or None privilege levels for resources assigned to a role. As a result, authenticated non-root users can perform unauthorized actions such as upserting and deleting documents despite having only read-only access. They can also escalate their privileges by calling PUT /roles to grant themselves WriteRead access, potentially gaining cluster administrator rights.