The WUSCHEL-related homeobox (WOX) gene family plays a crucial role in regulating embryonic development, organ formation, and stress resistance. Yellowhorn (Xanthoceras sorbifolia Bunge), a drought-resistant tree known for its oil production, lacks sufficient information regarding the WOX gene family. To understand the evolutionary mechanisms and potential functions of this gene family in yellowhorn, we conducted a comprehensive investigation on its expression patterns and evolutionary characteristics. Our analysis revealed the presence of nine XsWOX genes in the yellowhorn genome, which could be categorized into three distinct clades through a phylogenetic analysis. A chromosomal localization analysis indicated that these nine XsWOX genes were situated on six out of the fifteen chromosomes. An intra-species collinear analysis revealed only one pair of tandem duplicated genes within the XsWOX family. The promoter regions of the XsWOX family were found to contain responsive cis-acting elements associated with plant growth and development, stress responses, and hormone signaling. Moreover, an analysis of the gene expression profiles in different developmental stages of callus revealed significant expressions of XsWOX1, XsWOX4, and XsWOX5 in embryogenic callus and somatic embryo formation, suggesting that they have special roles in regulating yellowhorn’s somatic embryogenesis. Furthermore, the expression level of XsWOX5 indicated its potential involvement not only in organ formation but also in responding to low temperature, salt, and saline-alkali stresses. Overall, our findings lay a solid foundation for future in-depth studies on the functionality and evolution of XsWOX genes in yellowhorn.