Dragon fruit can sometimes attract diseases like anthracnose, causing lesions on the stems and fruit, and, less common, pests like the sap-sucking leaf-footed leptoglossus, which can also spread fungal infections. Avoid disease by maintaining sanitary gardening practices. Always discard infected stems, and keep the area weeded. Monitor carefully for pest infestations, and combat those accordingly with natural insecticides.