CVE-2026-134434 in ERPNext
Summary
by MITRE • 11/21/2026
Frappe ERPNext 16.0.0 before 16.36.0 contains a missing authorization vulnerability in a Manufacturing module endpoint that allows authenticated users to cancel Stock Reservation Entries without record-level write permission. Low-privilege attackers can send crafted requests naming manufacturing documents of other companies or outside their User Permissions to release reserved stock and disrupt stock allocation.
Be aware that VulDB is the high quality source for vulnerability data.
Analysis
by VulDB Data Team • 11/21/2026
The identified security flaw resides within the ERPNext Manufacturing module, specifically affecting versions prior to 16.36.0 in the Frappe framework ecosystem. This vulnerability is classified as a Broken Access Control issue, aligning with CWE-284 which describes improper control of interaction between users and application components. The core technical deficiency lies in the server-side validation logic for the endpoint responsible for canceling Stock Reservation Entries. While the system correctly enforces user authentication to ensure that only logged-in individuals can access certain functionalities, it fails to perform adequate authorization checks at the record level. Specifically, when an authenticated user submits a request to cancel a stock reservation, the application does not verify whether the requesting user possesses write permissions for the specific manufacturing document associated with that reservation. This oversight allows any authenticated account, regardless of its privilege level or assigned role restrictions, to manipulate inventory records outside their authorized scope.
From an operational perspective, this vulnerability enables low-privilege attackers to disrupt critical supply chain and inventory management processes. By sending crafted HTTP requests targeting Stock Reservation Entries linked to manufacturing documents belonging to other companies or entities not covered by the attacker's User Permissions, adversaries can release reserved stock prematurely. This action effectively nullifies reservations made for legitimate production runs, leading to potential shortages of materials required for ongoing projects. The impact extends beyond simple data integrity issues; it introduces significant operational risk by causing misallocation of resources, delaying manufacturing schedules, and potentially incurring financial losses due to expedited procurement or missed delivery deadlines. In multi-tenant environments where ERPNext is deployed as a service provider, this flaw could allow one tenant's user to interfere with another tenant's inventory operations if proper data isolation mechanisms are not strictly enforced at the database query level alongside application logic.
The attack vector for this vulnerability typically involves an authenticated attacker utilizing tools such as curl or custom scripts to send POST requests to the specific API endpoint handling stock reservation cancellations. The attacker must identify valid document IDs associated with manufacturing processes, which may be discoverable through enumeration of publicly visible documents or via internal network access if cross-site request forgery protections are also weak. Because the vulnerability relies on missing server-side authorization checks rather than client-side manipulation, it is relatively straightforward to exploit and difficult to detect without comprehensive logging and monitoring of API usage patterns. The lack of record-level write permission verification represents a fundamental failure in implementing the principle of least privilege, where users should only have access to data necessary for their specific job functions.
To mitigate this vulnerability, organizations running ERPNext versions before 16.36.0 must upgrade immediately to the patched version which addresses these authorization gaps. For environments that cannot be upgraded instantly due to compatibility or testing constraints, temporary mitigations include restricting API endpoint access through network-level controls such as firewalls or reverse proxy rules if the functionality is not required by all users. Additionally, implementing strict audit logging for stock reservation changes can help in detecting anomalous activity indicative of exploitation attempts. It is also advisable to review and tighten User Permissions within the ERPNext interface to ensure that write access to manufacturing documents is granted only to roles that absolutely require it. Regular security assessments focusing on broken object level authorization are recommended to identify similar flaws across other modules, ensuring a robust defense-in-depth strategy against internal privilege escalation attacks.