We demonstrated for the first time that several key OSRGs, including NR3C1, NGF, ENO2, and CYP17A1, are critical in EM pathogenesis. Here, CYP17A1 is linked to erythema multiforme.