We consider chiral electrons moving along the 1D helical edge of a 2D topological insulator and interacting with a disordered chain of Kondo impurities. Assuming the electron-spin couplings of random anisotropies, we map this system to the problem of the pinning of the charge density wave by the disordered potential. This mapping proves that arbitrary weak anisotropic disorder in coupling of chiral electrons with spin impurities leads to the Anderson localization of the edge states.