A rat model of secondary osteoporosis was constructed using retinoic acid as an inducer, and the genes, proteins, and bone mass of the rats were analyzed. qPCR detection of the Wnt/β-catenin and OPG/RANK/RANKL signaling pathway-related gene expression levels showed that Lactobacillus plantarum HFY15 played a positive role in regulating both pathways. HFY15 significantly increased β-catenin, Lrp5, Lrp6, Wnt10b, OPG, RANKL, and Runx2 expression and downregulated DKK1, RANK, CTSK, TRACP, and ALP expression. Enzyme-linked immunosorbent assays further confirmed the qPCR results. Tartrate-resistant acid phosphatase staining showed that HFY15 slowed retinoic acid-induced osteoclast formation. Microcomputed tomography showed that HFY15 reduced trabecular separation and increased the percent bone volume, trabecular numbers, trabecular thickness, and bone mineral density in the rats in vivo. These findings indicate that HFY15 may help prevent retinoic acid-induced secondary osteoporosis in vivo.