Cannabidiol (CBD), extracted from Cannabis sativa, has anticancer, anti-inflammation, and analgesic effects. Nevertheless, its therapeutic effect and the mechanism by which it alleviates oral mucositis (OM) remain unclear. To explore the impact of CBD on OM in mice and on human oral keratinocyte (HOK) cells. Expiremental study. The Traditional Chinese Medicine Systems Pharmacology Database and Analysis Platform, GeneCard, DisGeNET, and Gene Expression Omnibus databases were used to conduct therapeutic target gene screening for drugs against OM. Cytoscape software was used to build networks linking components, targets, and diseases. The STRING database facilitated analysis of intertarget action relationships, and the target genes were analyzed for Kyoto Encyclopedia of Genes and Genomes pathway enrichment. Occurrence of serum inflammation-related factors, hematoxylin and eosin staining, and immunohistochemistry were used to assess OM injury. Cell proliferation, migration, pyroptosis, and apoptosis of HOK cells under different treatments were assessed. Molecular mechanisms were elucidated through western blot and quantitative real-time polymerase chain reaction analyses. A total of 49 overlapping genes were pinpointed as potential targets, with NF-κB1, PIK3R1, NF-κBIA, and AKT1 being recognized as hub genes among them. Additionally, the PI3K/Akt/NF-κB and interleukin-17 signaling pathways were identified as relevant. Our in vivo experiments showed that CBD significantly reduced the proportion of lesion area, mitigated oral mucosal tissue lesions, and downregulated the expression levels of genes and levels of proteins, including NLRP3, P65, AKT, and PI3K. In vitro experiments indicated that CBD enhanced HOK cell proliferation and migration and reduced apoptosis through inhibition of the PI3K/Akt/NF-κB signaling pathway and pyroptosis. Our findings suggest a novel mechanism for controlling OM, in which CBD suppresses the PI3K/Akt/NF-κB signaling pathway and pyroptosis, thereby mitigating OM symptoms.