Sonja Farak, a chemist at the Massachusetts State Crime Laboratory in Amherst, was arrested in 2013

Massachusetts authorities will toss out more than 8,000 convictions that are tainted because a chemist at the state lab was high on drugs she was supposed to be testing almost every day she went to work, authorities said on Friday.

The announcements by various district attorneys’ offices came after the American Civil Liberties Union and Massachusetts’ public defender agency in September asked the state’s top court to toss any cases tied to Sonja Farak.

The dismissals came after prosecutors in April agreed to dismiss around 21,000 criminal drug cases because of a scandal involving a different state chemist, Annie Dookhan, who admitted faking tests.

Farak, a chemist at the Massachusetts State Crime Laboratory in Amherst, was arrested in 2013.

She later pleaded guilty to stealing drugs from the lab and was sentenced in 2014 to serve 18 months in prison.

Massachusetts authorities will toss out over 8,000 convictions that are tainted because of Farak, who authorities say was high almost every day she went to work

Civil liberties group said most of the convictions being dismissed tied to Farak involve low-level drug cases.

Last month, the Hampden District Attorney’s office said it will dismiss around 3,940 cases that involved drug samples linked to Farak - the biggest number of affected cases that were brought.

Northwestern District Attorney David Sullivan had the second-largest number of planned dismissals, with 1,497 cases, which he blamed on the ‘egregious misconduct committed by one rogue chemist at the Amherst Lab.’

Several other county district attorneys said they would also dismiss what would amount to hundreds of cases.

The dismissals came after prosecutors in April agreed to dismiss around 21,000 criminal drug cases because of a scandal involving a different state chemist, Annie Dookhan (above), who admitted faking tests

Suffolk County District Attorney Daniel Conley in Boston said 134 convictions would be dismissed.

‘Given the nature and extent of her misconduct, re-testing the substances at issue is unlikely to yield a reliable result,’ Conley said.

A Hampden County judge this year dismissed several cases tied to Farak after finding two ex-assistant attorneys general ‘tampered with the fair administration of justice’ by withholding evidence related to the chemist.

The ACLU cited the ruling in arguing to the Massachusetts top court that the ‘level of prosecutorial misconduct is unprecedented’ and warranted the dismissal of all wrongful convictions tied to Farak.