VATICAN CITY—Pope Francis on Saturday warned against what he called a “virus of polarization” and hostility in the world targeting people with different nationalities, races or beliefs.

The pontiff made his remarks as he led a ceremony over the induction in the Roman Catholic Church of 17 new cardinals from six continents.

Francis used his...