So is alcohol, salted fish, and potatoes, and so are a bunch of toxic chemicals that aren't an expected component of foods that we nevertheless ingest in trace amounts; the dose makes the poison.
I believe the acrylamide that forms in roasted or fried potatoes is only a probable carcinogen and only causes cancer in studies with doses much higher than people eat.