Histiocytic sarcoma (HS) is a rare and highly aggressive cancer in humans and dogs. In dogs, it has a high prevalence in certain breeds, such as Bernese mountain dogs (BMDs) and flat-coated retrievers. Hemophagocytic histiocytic sarcoma (HHS) is a unique form of HS that presents with erythrophagocytosis. Due to its rareness, the study of HHS is very limited, and mutations in canine HHS patients have not been studied to date. In previous work, our research group identified two major PTPN11/SHP2 driver mutations, E76K and G503V, in HS in dogs. Here, we report additional mutations located in exon 3 of PTPN11/SHP2 in both HS and HHS cases, further supporting that this area is a mutational hotspot in dogs and that mutations in tumors and liquid biopsies should be evaluated utilizing comprehensive methods such as Sanger and NextGen sequencing. The overall prevalence of PTPN11/SHP2 mutations was 55.8% in HS and 46.2% in HHS. In addition, we identified mutations in KRAS, in about 3% of HS and 4% of HHS cases. These findings point to the shared molecular pathology of activation of the MAPK pathway in HS and HHS cases. We evaluated the efficacy of the highly specific MEK inhibitor, cobimetinib, in canine HS and HHS cell lines. We found that the IC50 values ranged from 74 to 372 nM, which are within the achievable and tolerable ranges for cobimetinib. This finding positions cobimetinib as a promising potential candidate for future canine clinical trials and enhances our understanding of the molecular defects in these challenging cancers.