# ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce <= 1.17.11 - Authenticated (Employee+) Insecure Direct Object Reference to Employee Leave History Disclosure

- **ID:** WPSEC-2026-3256
- **Plugin:** ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce (`erp`), https://wordpress.org/plugins/erp/
- **Affected versions:** all versions before 2.0.0
- **Fixed in:** 2.0.0 (Update to 2.0.0 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N)
- **Weakness:** CWE-639
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-17)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/erp
- **Fix released:** 2026-11-16
- **Published:** 2026-11-17
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3256/

## Description

The ERP plugin for WordPress is vulnerable to Insecure Direct Object Reference via the erp-hr-empl-leave-history AJAX action in all versions up to, and including, 1.17.11, due to the get_employee_leave_history() function accepting a user-supplied employee_id and checking only a nonce that is printed on every employee's own leave tab, without verifying that the current user may view that employee. This makes it possible for authenticated attackers with the plugin's Employee role to view other employees' leave request history.

## References

- https://wpsec.com/vuln/WPSEC-2026-3256/
- https://plugins.svn.wordpress.org/erp/tags/2.0.0/
- https://wordpress.org/plugins/erp/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3256/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
