More than 20 people were left injured after a 5.8-magnitude earthquake hit northwest China's Xinjiang Uygur Autonomous Region Thursday afternoon, local authorities said Friday.