The state's public defenders office is asking the Supreme Judicial Court to toss every case — potentially thousands — tied to disgraced state chemist Sonja Farak, two months after a judge ruled that prosecutors handling her criminal case had misled and "committed fraud" upon the court.

The Committee for Public Counsel Services said today it has filed a petition with the state's highest court asking to dismiss, with prejudice, "every case tainted" by the conduct by Farak, a former chemist at the Amherst drug lab who was convicted of tampering with evidence.

Beyond Farak's misconduct, attorneys also point to the actions of two prosecutors under then-Attorney General Martha Coakley, who a judge ruled in June had intentionally misled a judge and withheld crucial evidence amid the festering scandal at the lab.

In a scathing 133-page decision, Judge Richard J. Carey's wrote that former Assistant Attorneys General Anne Kaczmarek and Kris Foster had “committed fraud upon the court" by concealing documents and making what he called a series of “calculated misrepresentations" in several cases involving Farak.

Farak ultimately served an 18-month jail sentence after admitting to, among other things, cooking crack cocaine in the state lab. When she was arrested in early 2013, police seized “mental health worksheets" she kept from her substance abuse therapy indicating she had been using and getting high off drug samples as early as 2011.

Under an order by the SJC, the AG's office, now under Maura Healey, has said Farak admitted to stealing drugs for her own personal use on a “fairly regular basis” as early as 2004.

The full scope of the potentially impacted cases is unclear, though defense attorneys who have represented clients with cases involving Farak said she handled roughly 30,000 samples.

Kaczmarek and Foster didn't disclose all the evidence to the court or defense attorneys, meaning the full scope of Farak's drug use — and its potential to impact more cases — wasn't made clear, Carey said.

CPCS's request comes after attorneys made similar arguments for the dismissal of cases affected by the conduct of another ex-chemist, Annie Dookhan. The SJC didn't dismiss every case in that instance, but instead told prosecutors to identify cases and convictions to be tossed. In April, the SJC ended up dismissing more than 21,500.

"Once again, the Committee is compelled to seek extraordinary relief from the Supreme Judicial Court for clients irreparably harmed by the misconduct of a state laboratory employee, this time compounded by the fraud on the court committed by assistant attorneys general," said CPCS chairman Jack Cinquegrana.

The state bar was also asked in July to investigate Kaczmarek and Foster. Nina Morrison, an attorney with the Innocence Project and Northeastern University law professor Daniel Medwed each filed complaints with the Office of Bar Counsel.