{
 "id": "WPSEC-2026-3813",
 "url": "https://wpsec.com/vuln/WPSEC-2026-3813/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-3813/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-3813/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-3813.json",
 "title": "ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce <= 2.0.0 - Unauthenticated Missing Authorization to Leave Request Disclosure and Moderation via Department Lead Check",
 "description": "The ERP plugin for WordPress is vulnerable to unauthorized access via the erp/v2 leave-requests REST API endpoints in version 2.0.0, due to the department lead checks (erp_hr_is_current_user_dept_lead() and erp_hr_match_user_dept_lead_with_current_user()) comparing the current user ID loosely against stored lead IDs without requiring a logged-in user. A department with no lead stores 0, which equals a logged-out visitor's user ID. This makes it possible for unauthenticated attackers, on sites with at least one department without a lead, to list the leave requests of all employees and to approve or reject leave requests of employees in departments without a lead.",
 "plugin": {
  "slug": "erp",
  "name": "ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce",
  "full_name": "ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce",
  "wordpress_org": "https://wordpress.org/plugins/erp/",
  "advisories_url": "https://wpsec.com/vuln/plugin/erp/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/erp"
 },
 "type": "NO AUTHORISATION",
 "cwe": [
  "CWE-863"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.5,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "2.0.0",
    "from_inclusive": true,
    "to": "2.0.1",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 2.0.0 before 2.0.1"
  ]
 },
 "introduced_in": "2.0.0",
 "fixed_in": "2.0.1",
 "remediation": "Update to 2.0.1 or later.",
 "fix_released": "2026-11-23T18:12:13+00:00",
 "published": "2026-11-24T18:51:16+00:00",
 "updated": "2026-11-24T11:30:48.170409+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-3813/",
  "https://plugins.svn.wordpress.org/erp/tags/2.0.1/",
  "https://wordpress.org/plugins/erp/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/erp",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "None seen",
  "as_of": "2026-11-24"
 }
}