Summary
Frappe HRMS bulk record-creation endpoints may fail to check whether an authenticated user is authorized to act on each selected employee. A user with create permission for the record type could therefore create records for employees outside their user-permission scope, including employees of other companies.
Affected context
The issue concerns Frappe HRMS endpoints that create records in bulk for a list of employees. Affected releases are 15.0.0 before 15.64.6 and 16.0.0 before 16.20.1. The risk exists when an endpoint checks a user's permission to create the record type but does not also enforce access to every employee in the submitted list.
Exploit preconditions
- Attack surface: An affected bulk record-creation endpoint
- Required access: An authenticated account with create permission for the relevant record type, such as an HR User
- Trigger point: A bulk creation request that references employees outside the user's permitted scope
- Why exploitation is possible: The endpoint does not verify the user's access to each employee before creating the associated records
Why this happens
The underlying issue is a missing authorization check on individual employee records during bulk processing. Checking permission to create a record type does not establish permission to create that record for every employee in a submitted list. This is an instance of CWE-862: Missing Authorization, where an operation lacks a required access-control check.
Potential impact
- An authenticated user may create records for employees outside their assigned scope
- Records may be created for employees belonging to other companies
- HR data integrity and organizational workflows could be affected
- Unauthorized records could cause downstream processing or compliance issues
General mitigation guidance
Defensive design should authorize every employee in a bulk request, not just the overall operation or record type.
Common security patterns include:
- Enforcing server-side access checks for each employee before creating any records
- Validating the full set of requested employees against the user's company and permission scope
- Rejecting the request atomically if any employee is unauthorized
- Applying least privilege to record-creation permissions and bulk operations
- Avoiding reliance on client-side filtering or submitted employee lists as proof of authorization
How teams detect issues like this
Review bulk endpoints for authorization checks applied to every referenced employee, including checks that run before records are written.
Static analysis and code review can look for bulk loops or batch operations that use submitted employee identifiers without invoking the appropriate permission checks. Policy tests can verify that users cannot create records for employees outside their scope, including across company boundaries. Audit logs may also help identify bulk creations that do not match the acting user's permissions.

