# CVE-2026-13011: weDevs WP ERP SQL injection in orderby parameter

Source: https://junglewise.ai/threats/cve-2026-13011-wedevs-wp-erp-sql-injection-in-orderby-parameter  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-09. Updated: 2026-07-09  
License: CC BY 4.0 with a link back

CVE-2026-13011 · Severity: medium · CVSS 6.5 · Published 2026-07-09

The WP ERP plugin for WordPress, which manages human resources, accounting, and customer relationships, is vulnerable to a security flaw that allows certain authorized users to access sensitive database information. An attacker with HR Manager-level access or higher can manipulate database queries to extract data they are not supposed to see. This could lead to the exposure of confidential employee records, financial data, or customer information.

Technologies: [weDevs WP ERP](https://junglewise.ai/threats/technologies/wp-erp). Vendors: [weDevs](https://junglewise.ai/threats/vendors/wedevs).

## Quick answers

**Is CVE-2026-13011 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-13011 being exploited in the wild.

**How severe is CVE-2026-13011?** Medium severity, with a CVSS score of 6.5, published 9 July 2026.

**Which products and versions are affected?** weDevs WP ERP 0 - 1.17.5.

**Is there a fix for CVE-2026-13011?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-13011 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-13011?** Check whether you run weDevs WP ERP at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A SQL injection vulnerability exists in the WP ERP plugin for WordPress due to insufficient escaping and lack of preparation on the 'orderby' parameter within SQL queries. This flaw is present in all versions up to and including 1.17.5. The vulnerability is exploitable by authenticated attackers with the 'erp_list_employee' capability, typically assigned to HR Manager-level users and above. By appending malicious SQL commands to existing queries, an attacker can perform unauthorized data extraction from the site's database. The issue was addressed in subsequent updates following version 1.17.5.

## Affected products

- weDevs ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce (WP ERP) 0 - 1.17.5

## Timeline

- 2026-07-09: advisory: NVD publication date
- 2026-07-09: disclosed: Wordfence advisory published

## References

- [https://plugins.trac.wordpress.org/browser/erp/tags/1.17.5/modules/hrm/includes/LeaveRequestsListTable.php](https://plugins.trac.wordpress.org/browser/erp/tags/1.17.5/modules/hrm/includes/LeaveRequestsListTable.php)
- [https://plugins.trac.wordpress.org/browser/erp/tags/1.17.5/modules/hrm/includes/functions-leave.php](https://plugins.trac.wordpress.org/browser/erp/tags/1.17.5/modules/hrm/includes/functions-leave.php)
- [https://plugins.trac.wordpress.org/browser/erp/tags/1.17.5/modules/hrm/includes/functions-leave.php](https://plugins.trac.wordpress.org/browser/erp/tags/1.17.5/modules/hrm/includes/functions-leave.php)
- [https://plugins.trac.wordpress.org/browser/erp/tags/1.17.5/modules/hrm/includes/functions-leave.php](https://plugins.trac.wordpress.org/browser/erp/tags/1.17.5/modules/hrm/includes/functions-leave.php)
- [https://plugins.trac.wordpress.org/changeset?reponame=&old=3598905%40erp&new=3598905%40erp](https://plugins.trac.wordpress.org/changeset?reponame=&old=3598905%40erp&new=3598905%40erp)
- [https://www.wordfence.com/threat-intel/vulnerabilities/id/208c8f55-14e0-47c4-b310-dd7b7edbadd4?source=cve](https://www.wordfence.com/threat-intel/vulnerabilities/id/208c8f55-14e0-47c4-b310-dd7b7edbadd4?source=cve)

## Related threats

- [weDevs ERP authorization bypass in employee profile editing](https://junglewise.ai/threats/cve-2026-126808-wedevs-erp-wp-erp-through-1-17-11-contains-an-incorrect)
- [weDevs WP ERP broken access control vulnerability](https://junglewise.ai/threats/cve-2026-25448-missing-authorization-vulnerability-in-wedevs-wp-erp-erp-allows)
- [weDevs WP ERP broken access control in WordPress plugin](https://junglewise.ai/threats/cve-2026-59522-wedevs-wp-erp-broken-access-control-in-wordpress-plugin)
