Postharvest management strategies like cutting height and anaerobic fermentation may affect the microbial risk of vegetables. This study evaluated the effects of cutting height and storage length on the fermentation characteristics, microbial diversity, co-occurrence networks, potential functionality and pathogenic risk of sweet sorghum stem (SSS). Fresh SSS harvested at two cutting heights (15 cm, F15; 45 cm, F45) was spontaneously fermented (S15 and S45) for 2, 4, 8, 16, 32 and 64 days. Decreasing the cutting height of SSS increased the dry matter, water-soluble carbohydrate content as well as Acinetobacter (23.0% vs. 44.9%) and Klebsiella (1.84% vs. 6.58%) proportion but decreased the crude protein content (P < 0.05). After fermentation, both cutting heights presented desirable fermentation. Anaerobic fermentation promoted the Glycolysis pathway (0.009 vs. 0.018) and related enzymes (l-lactate dehydrogenase, etc.) associated with lactate synthesis, but suppressed the degradation pathways of valine, leucine, isoleucine (0.011 vs. 0.003) and lysine (0.008 vs. 0.002). In microbial phenotype analysis, although F15 had higher proportions of ‘Potentially Pathogenic’ than F45, this undesirable phenotype declined to negligible levels via fermentation. These results concluded that, for SSS, concerns about the risk of microbial contamination and pathogens from low cutting height can be dispelled by well fermentation.