Reports from Burkina Faso say at least 20 militants and three soldiers have been killed in two simultaneous attacks near the border with Mali.
In one incident, suspected jihadists seized large quantities of military equipment after storming an army base in Toeni in the north of the country.
Across the border in Mali, at least two soldiers were killed and seven others wounded by a roadside bomb in the central region.
Another nine were injured in a bomb attack near Burkina Faso.
Islamist militants and other armed groups operate across the region, regularly moving across borders.