{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-3813",
 "modified": "2026-11-24T18:51:16Z",
 "published": "2026-11-24T18:51:16Z",
 "summary": "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",
 "details": "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.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "erp"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "2.0.0"
      },
      {
       "fixed": "2.0.1"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 2.0.0 before 2.0.1"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-3813/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/erp/tags/2.0.1/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/erp/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-3813/",
  "cwe_ids": [
   "CWE-863"
  ],
  "vulnerability_type": "NO AUTHORISATION",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
