Starbucks Corp. and other roasters and retailers must serve up a cancer warning with coffee sold in California, a Los Angeles judge has ruled.

Superior Court Judge Elihu Berle in a ruling published on Monday said that Starbucks and other coffee sellers did not show that the risk from consuming acrylamide, a possible cancer-causing byproduct created during coffee roasting, was offset by benefits from drinking coffee.

That ruling confirmed Berle’s tentative decision on the matter in March.

The Council for Education and Research on Toxics, a nonprofit group, sued some 90 coffee retailers, including Starbucks, on grounds they were violating a California law requiring companies to warn consumers of chemicals in their products that could cause cancer.

The latest ruling in the eight-year legal battle opens a path for CERT to ask for a permanent injunction that would require coffee sellers to warn consumers about the cancer risk associated with acrylamide.

Read more