From October 22, 2023, Brazilian citizens and other nationalities who intend to travel in transit through Mexico’s international airports must have a Mexican visa to be allowed to board any flight to Mexico. Foreigners traveling to Mexican territory carrying one of the following documents will not need a Mexican visa:
a) People holding a passport or a document proving their permanent residence in Canada, the United States of America, Japan, the United Kingdom of Great Britain and Northern Ireland, any of the countries that make up the Schengen Area, as well as the member countries of the Pacific Alliance (Colombia, Chile and Peru).
b) People holding a valid and current visa for Canada, the United States of America, Japan, the United Kingdom of Great Britain and Northern Ireland or any of the countries that make up the Schengen Area.
Source: https://embamex.sre.gob.mx/brasil/index.php/servicios-consulares/visas