Shipments of Russian oil to Hungary and Slovakia have been cut off since January 27, when Kyiv says a Russian drone strike hit pipeline equipment in Western Ukraine. Slovakia and Hungary say Ukraine is to blame for the prolonged outage.
Slovakia's Prime Minister Robert Fico said on Saturday he would cut off emergency electricity supplies to Ukraine within two days unless Kyiv resumes Russian oil transit to Slovakia over Ukraine's territory. Hungary's Viktor Orban made a similar threat days earlier.
The issue has become one of the angriest disputes yet between Ukraine and two neighbours that are members of the EU and NATO but whose leaders have bucked the largely pro-Ukrainian consensus in Europe to cultivate warm ties with Moscow.
Slovakia and Hungary are the only two EU countries that still rely on significant amounts of Russian oil shipped via the Soviet-era Druzhba pipeline over Ukraine.
"Ukraine rejects and condemns the ultimatums and blackmail by the governments of Hungary and the Slovak Republic regarding energy supplies between our countries," the Ukrainian Foreign Ministry said in a statement.
"Ultimatums should be sent to the Kremlin, and certainly not to Kyiv."
Between them, Hungary and Slovakia have been providing around half of European emergency electricity exports to Ukraine, which Kyiv increasingly relies on as Russian attacks have damaged its grid.
"If oil supplies to Slovakia are not resumed on Monday, I will ask SEPS, the state-owned joint-stock company, to stop emergency electricity supplies to Ukraine," Fico said in a post on X.
Kyiv said that such actions were "provocative, irresponsible, and threaten the energy security of the entire region".
Throughout the war that began with the full-scale Russian invasion whose fourth anniversary falls on Tuesday, Ukraine has allowed its territory to be used for Russian energy exports to Europe, which have been sharply curtailed but not halted.
Ukraine has proposed alternative transit routes to ship oil to Europe while emergency pipeline repair works are under way.
In a letter seen by Reuters, the Ukrainian mission to the EU proposed shipments through Ukraine's oil transportation system or a maritime route, potentially including the Odesa-Brody pipeline linking Ukraine's main Black Sea port to the EU.
Since October, Russia has intensified its drone and missile attacks on the Ukrainian energy system, knocking out electricity and heat and plunging millions of Ukrainians into long blackouts during bitterly cold winter temperatures.