TOKYO—Toyota Motor Corp. is recalling over one million Prius and C-HR crossover sport-utility vehicles globally to repair a portion of the electrical system that could cause a fire.

The recall affects certain 2016-2018 model-year Prius vehicles, Prius Prime plug-in hybrids and hybrid gas-electric versions of the C-HRs. In the U.S., the recall covers about 192,000 Prius vehicles. Toyota doesn’t sell a hybrid version of the C-HR in the U.S. The bulk of the vehicles covered by the recall were sold in Japan.

Toyota...