Article 54 Vienna Convention on Consular Relations
Obligations of third States
1.If a consular officer passes through or is in the territory of a third State, which has granted him a visa if a visa was necessary, while proceeding to take up or return to his post or when returning to the sending State, the third State shall accord to him all immunities provided for by the other articles of the present Convention as may be required to ensure his transit or return. The same shall apply in the case of any member of his family forming part of his household enjoying such privileges and immunities who are accompanying the consular officer or travelling separately to join him or to return to the sending State.
2.In circumstances similar to those specified in paragraph 1 of this article, third States shall not hinder the transit through their territory of other members of the consular post or of members of their families forming part of their households.
3.Third States shall accord to official correspondence and to other official communications in transit, including messages in code or cipher, the same freedom and protection as the receiving State is bound to accord under the present Convention. They shall accord to consular couriers who have been granted a visa, if a visa was necessary, and to consular bags in transit, the same inviolability and protection as the receiving State is bound to accord under the present Convention.
4.The obligations of third States under paragraphs 1, 2 and 3 of this article shall also apply to the persons mentioned respectively in those paragraphs, and to official communications and to consular bags, whose presence in the territory of the third State is due to force majeure.
See also: Article 53 Vienna Convention on Consular Relations