(CNN) Two countries issued travel warnings to their citizens about the United States following two mass shootings that killed 31 people.

Both Venezuela and Uruguay warned their residents about violence and hate crimes in the United States Monday.

Uruguay's Office of Foreign Ministry issued an advisory Monday saying citizens should "take precaution amid the growing indiscriminatory violence, specifically hate crimes including racism and discrimination" when traveling to the United States.

The alert noted that other factors, such as the "indiscriminate possession of firearms by the population" and the "impossibility of authorities to prevent these situations," were among some of the reasons travelers need to be particularly wary of highly populated areas or events.

Uruguay's warning also suggested avoiding the cities of Detroit, Baltimore and Albuquerque, as they were listed as part of the 20 most dangerous cities in the world according to the CEOworld Magazine 2019 index.

Read More