{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "3.4.3"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "35b68245a00bb66b40aea53e2be3478e4558854d"
            }
          ],
          "repo": "https://github.com/opensourcepos/opensourcepos",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142265.json"
  },
  "details": "Open Source Point of Sale through 3.4.3 contains a privilege escalation vulnerability in Employee::canModifyEmployee() that allows authenticated users with the employees permission to take over higher-privileged accounts. Attackers can submit the employee save form setting a new username and password for a non-administrator employee without grant fields, then log in to access permissions like store configuration.",
  "id": "CVE-2026-142265",
  "modified": "2026-12-02T20:45:24.528378610Z",
  "published": "2026-12-02T16:49:33.320Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142265.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/opensourcepos/opensourcepos"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/opensourcepos/opensourcepos/blob/3.4.3/app/Controllers/Employees.php#L117-L129"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/opensourcepos/opensourcepos/blob/3.4.3/app/Models/Employee.php#L167-L178"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/opensourcepos/opensourcepos/blob/3.4.3/app/Models/Employee.php#L584-L595"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142265"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/open-source-point-of-sale-through-3.4.3-privilege-escalation-via-employee-canmodifyemployee"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Open Source Point of Sale through 3.4.3 Privilege Escalation via Employee::canModifyEmployee()"
}