Dunkin' Brands has been hit with a lawsuit alleging the company didn't notify nearly 20,000 Dunkin' Donuts customers that their accounts had been compromised.

New York State Attorney General Letitia James announced the action Thursday.

James accused the company of failing to protect customers who created accounts using the Dunkin' Donuts website or its mobile app.

The attorney general said "Dunkin' sat idly by, putting customers at risk." She said personal information and funds were jeopardized after a series of cyberattacks in 2015.

James said the lawsuit alleges the company violated the state data breach notification statute by failing to advise consumers and authorities of the data breach.

The suit seeks full restitution to affected customers along with civil penalties.

According to WNBC, a Dunkin' brands representative issued a statement indicating the company has "fully cooperated" with the attorney general's investigation into the matter.

The statement said: "We are shocked and disappointed that they chose to move ahead with this lawsuit given the lack of merit to their case."

Contact WNBF News reporter Bob Joseph: bob@wnbf.com

For breaking news and updates on developing stories, follow @BinghamtonNow on Twitter.