It was a reprieve for Deputy Chief Justice Philomena Mwilu as the court stopped her further trial over corruption allegations.
Passing their judgment a five-judge bench ruled that the Deputy Public Prosecutor has no legal basis to indict her.
The court went further to say that the manner in which the Directorate of criminal investigations obtained her bank accounts was illegal.
The high court cited misuse and misinterpretation of the order terming it as a violation of the rights to privacy.
The DPP will now appeal the verdict. The prosecution had accused the DCJ of abuse of office, failure to pay taxes and bribery.