Bombyx mori is an important economic animal for silk production. However, it is liable to be infected by organophosphorus pesticide that can contaminate its food and growing environment. It has been known that organophosphorus pesticide including phoxim exposure may damage the digestive systems, produce oxidative stress and neurotoxicity in silkworm B. mori, whereas cerium treatment has been demonstrated to relieve phoxim-induced toxicity in B. mori. However, very little is known about the molecular mechanisms of midgut injury due to phoxim exposure and B. mori protection after cerium pretreatment. The aim of this study was to evaluate the midgut damage and its molecular mechanisms, and the protective role of cerium in B. mori following exposure to phoxim. The results showed that phoxim exposure led to severe midgut damages and oxidative stress; whereas cerium relieved midgut damage and oxidative stress caused by phoxim in B. mori. Furthermore, digital gene expression suggested that phoxim exposure led to significant up-regulation of 94 genes and down-regulation of 52 genes. Of these genes, 52 genes were related with digestion and absorption, specifically, the significant alterations of esterase, lysozyme, amylase 48, and lipase expressions. Cerium pretreatment resulted in up-regulation of 116 genes, and down-regulation of 29 genes, importantly, esterase 48, lipase, lysozyme, and α-amylase were up-regulated. Treatment with Phoxim + CeCl3 resulted in 66 genes up-regulation and 39 genes down-regulation; specifically, levels of esterase 48, lipase, lysozyme, and α-amylase expression in the midgut of silkworms were significantly increased. Therefore, esterase 48, lipase, lysozyme, and α-amylase may be potential biomarkers of midgut toxicity caused by phoxim exposure. These findings may expand the application of rare earths in sericulture.