Vegetables cultivated on contaminated agricultural soils are being consumed by the public, and consequently cause serious health concerns due to contaminants' dietary intake. The current study examines the safety and sustainability of eating eggplant (Solanum melongena) by looking into the possibility of heavy metals translocation from polluted soils to the edible sections, as well as the health hazards that come with it. Soil and eggplant samples were taken from three contaminated and other three uncontaminated farms to estimate their chemical constituents and plant growth properties. Based on the pollution load index data, the contaminated soils were highly polluted with Fe, Cu, Pb, and Zn; and relatively polluted with Cr, Mn, Cd, Mn, Co, and V. Under contamination stress, the fresh biomass, dry biomass, and production of eggplant were significantly reduced by 41.2, 44.6, and 52.1%, respectively. Likewise, chlorophyll a and b were significantly reduced from 1.51 to 0.69 mg g−1 and 1.36 to 0.64 mg g−1, respectively. The uncontaminated plant shoots had the highest quantities of N, P, and proteins (1.98, 2.08, and 12.40%, respectively), while the roots of the same plants had the highest K content (44.70 mg kg−1). Because eggplant maintained most tested heavy elements (excluding Zn and Pb) in the root, it is a good candidate for these metals' phytostabilization. However, it had the potential to translocate Mn and Zn to its shoot and Pb, Cr, Mn, and Zn to the edible fruits indicating its possibility to be a phytoextractor and accumulator of these metals. Cd, Cu, Ni, Pb, Mn, and Co quantity in the edible sections of eggplant grown in contaminated soils exceeded the permissible level for normal plants, posing health hazards to adults and children. For safety issues and food sustainability, our investigation strongly recommends avoiding, possibly, the cultivation of eggplant in contaminated agricultural lands due to their toxic effects even in the long run.