Several consequences of health effects from municipal solid waste caused by carcinogenic and noncarcinogenic metals have been recognized. The water quality index (
WQI
) in the groundwater around this landfill is 2945.58, which is unacceptable for consumption. The contaminated groundwater mainly appears within a 1 km radius around the landfill. The metal pollution levels in the soil in descending order were Cu > Cd > Zn=Cr > Pb > Ni. The pollution degree (ER) of Cd was 2898.88, and the potential ecological risk index (RI) was 2945.58, indicating that the risk level was very high. Surprisingly, the hazard index (HI) of Pb (2.05) and Fe (1.59) in children was higher than 1. This indicated that the chronic risk and cancer risk caused by Pb and Fe for children were at a medium level. Carcinogenic risk by oral (CR oral) consumption of Ni, Cd, and Cr in children was 1.4E − 04, 2.5E − 04, and 1.8E − 04, respectively, while the lifetime carcinogenic risk (LCR) of Ni, Cd, and Cr in children was 1.5E − 04, 2.8E − 04, and 2.0E − 04, respectively. In adults, CR oral of Ni and Cr were 1.6E − 03 and 3.0E − 04, respectively, while LCR of Ni and Cr were 1.6E − 03 and 3.4E − 04, respectively, which exceeded the carcinogenic risks limits. Our study indicated a lifetime carcinogenic risk to humans. Environmental surveillance should focus on reducing health risks such as continuous monitoring of the groundwater, soil, and leachate treatment process.