Coffee sellers are mulling how to fight a California judge’s ruling that would require the beverage to be branded with cancer warning labels.

The National Coffee Association, whose members include Starbucks and Dunkin’ Donuts, said in a statement on Thursday that it was “currently considering all of its options, including potential appeals and further legal actions.”

The ruling stems from a lawsuit filed in 2010 by the Council for Education and Research on Toxics, a nonprofit group based in Long Beach. The group charged that Starbucks and other companies — a group that eventually included 91 defendants — did not warn consumers that ingesting coffee would expose them to acrylamide, a chemical formed when coffee beans are roasted.

California keeps a list of chemicals it considers to cause cancer or reproductive harm, and acrylamide has been included since 1990. The state’s Safe Drinking Water and Toxic Enforcement Act, known as Proposition 65 after it was passed in 1986, requires businesses to provide warning labels when exposing consumers to any of the hundreds of chemicals listed.