Electrochemical treatment of textile dye wastewater generates toxic disinfection byproducts, including chloroform and bromoform, at concentrations far exceeding US drinking water safety limits. Sodium chloride, routinely added to boost treatment efficiency, has been identified as the primary driver of byproduct formation, raising serious concerns for factory workers and downstream environmental health.