Frappe is a full-stack web application framework. Prior to 15.110.0 and 16.20.0, the restore and bulk_restore endpoints do not apply the appropriate document permission checks, allowing an authenticated user to restore deleted documents without the required authorization. This issue is fixed in versions 15.110.0 and 16.20.0.
https://github.com/frappe/frappe/security/advisories/GHSA-cjjx-3v2x-37mf
https://github.com/frappe/frappe/commit/d5c5499c95953b0bb28f7b4907add01663bb8ca0
https://github.com/frappe/frappe/commit/caa95f64f96ccf62f9f9fdfc03274527105cb44e