Gene function analysis revealed that pyroptosis genes BST2, GBP5, and AIM2 were differentially expressed in CM patients and positively associated with patient prognosis. Here, BST2 is linked to cutaneous mastocytosis.