The AP2/ERF gene family involves numerous plant processes, including growth, development, metabolism, and various plant stress responses. However, several studies have been conducted on the AP2/ERF gene family in yellow horn, a new type of oil woody crop and an essential oil crop in China. According to sequence alignment and phylogenetic analyses, one hundred and forty-five AP2/ERF genes were detected from the yellow horn genome. They were divided into four relatively conserved subfamilies, including 21 AP2 genes, 119 ERBP genes, 4 RAV genes, and 1 Soloist gene. Gene analysis of XsAP2/ERF TFs showed 87 XsAP2/ERF TFs lacked introns. There were 75 pairs of collinearity relationships between X. sorbifolium and Arabidopsis, indicating a close similarity. In addition, the expression patterns of XsAP2/ERF TFs under cold treatments confirmed that the XsAP2/ERF TFs play essential roles in abiotic stress response. The expression of eight XsAP2/ERF transcription factors was verified in different tissues and under various stress treatments using RT-qPCR. This study establishes a starting point for further research to explore the potential mechanisms of identifying candidate AP2/ERF TFs that could respond to the abiotic stress of yellow horn.