Censor.NET reports citing the press service of the SBU.
Volodymyr Zhemchuhov and the UN official representative in Donetsk city Yurii Suprun were taken to the Kyiv-controlled territory.
"They have reached the Ukrainian territory and will receive all necessary medical assistance," the statement reads.
According to the head of the SBU Vasyl Hrytsak, liberation of Ukrainian prisoners remains one of the top priorities of the SBU.
Earlier, President Petro Poroshenko confirmed the release of Yurii Suprun and Volodymyr Zhemchuhov from the militants' captivity.
Zhemchuhov was held captive by the militants since fall of 2015. Apprehension of Suprun, personal representative of the UN in Donetsk, was announced on April 13.
Terrorists keep 137 civilian hostages: Russian mercenaries detain people who cross contact line, - Tandit(0)
Relatives of Ukrainian hostages held by Kremlin picket Ukraine-EU Summit with demands to increase prisoners release efforts. PHOTOS+VIDEO(0)
SBU Counterintelligence identified Russian mercenaries and soldiers killed and captured at Zholobok. PHOTOS+VIDEO(0)
Russian fighter Ageev, captured by Ukrainian army on June 24, "left military service" last year, - Russian MoD(0)