DescriptionFrappe ERPNext 5.0.0 before 15.121.4 and 16.x before 16.36.0 contains an incorrect authorization vulnerability in a Selling module endpoint that checks only document-type write permission, not permission on each Sales Order, when closing or reopening Sales Orders. Authenticated users restricted by User Permissions can send crafted requests naming another company's Sales Order to close or reopen it outside their restriction.