Two judges declared the 2014 Data Retention and Investigatory Powers Act (Dripa), which permits the interception and retention of information from phone and internet communications, “inconsistent with EU law”.
The ruling has alarmed the Government. Security Minister John Hayes said in a statement yesterday: “We disagree absolutely with this judgment and will seek an appeal.”
The judges granted Home Secretary Theresa May permission to appeal because of the public importance of their decision.
Conservative former shadow home secretary David Davis and Labour backbencher Tom Watson brought the legal challenge with campaigning members of the public Peter Brice and Geoffrey Lewis,.
The MPs applied for judicial review, saying they were concerned to protect the confidentiality of their contacts with constituents and other members of the public – including whistleblowers – who might approach them with sensitive information.
Lord Justice Bean and Mr Justice Collins declared that Section 1 of Dripa was flawed because it did not lay down clear and precise rules “strictly restricting” data retention to the purpose of preventing and detecting “precisely defined serious offences, or of conducting criminal prosecutions relating to such offences”.
In a 44-page ruling, the judges also condemned data being retained without the safeguard of a prior review by a court or other independent administrative body.
They gave the Government and Parliament a deadline of March 2016 “to put matters right”.
They warned that, if Parliament fails to act, they will disapply provisions contained in Section 1 which allow the retention of data without prior review, unless the data is held for “the prevention and detection of serious offences, or the conduct of criminal prosecutions”.
Mr Davis, Conservative MP for Haltemprice and Howden, said: “The court has recognised what was clear to many last year – that the Government’s hasty and ill-thought through legislation is fatally flawed.
He said the Government “will now have to rewrite the law to require judicial or independent approval before accessing innocent people’s data”. Mr Watson, Labour MP for West Bromwich East, said: “The Government was warned that rushing through important security legislation would end up with botched law.
“Now the High Court has said they must come back to Parliament and do it properly.”
But Mr Hayes said on behalf of the Government that the ruling could adversely affect fighting crimes such as stalking and harassment which might not come into the “serious crime” category.
Mr Hayes said: “Communications data is not just crucial in the investigation of serious crime; it is also a fundamental part of investigating other crimes which still have a severe impact, such as stalking and harassment, as well as locating missing people, including vulnerable people who have threatened to commit suicide.
“The effect of this judgment would be that, in certain cases, communications data that could potentially save lives would only be available to the police and other law enforcement if a communications company had decided to retain it for commercial reasons.
“We believe that is wrong.”