/

CVE-2026-126314

Severity:

HIGH RISK

(8.8)

Bulk Access Control Bypass (CWE-862) in Frappe HRMS

CVE-2026-126314

Deferred

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-862

Impact:

Unauthorized creation of records for employees outside the user's permitted scope

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

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.

Sources

SourceLink
github.comgithub.com/frappe/hrms/security/advisories/GHSA-m8m7-r43p-2jjf
vulncheck.comvulncheck.com/advisories/frappe-hrms-15.0.0-before-15.64.6-missing-authorization-in-bulk-record-creation

Frequently asked

questions

It can be triggered through an affected application endpoint, subject to the deployment's network and access controls.

An attacker needs an authenticated account with create permission for the affected record type. The missing check concerns access to each employee in the bulk request.

Perform server-side authorization for every employee before creating associated records, and reject the operation if any requested employee is outside the user's scope.

Treat every submitted object identifier as untrusted, enforce object-level authorization consistently in bulk and single-record paths, and test permission boundaries across users and companies.

Find out what's already
exploitable in your codebase.