Nicotine will do that. Tar is a very potent carcinogen (i.e gives you cancer) though. I don't recall ever hearing of nicotine being proven as a carcinogen in its own right. However that doesn't mean it's safe. The reason why plants make nicotine is because it's a natural insecticide. In its pure form it is very toxic to humans. Most people probably don't realise quite how toxic though.
The LD50 of nicotine is 50 mg/kg for rats and 3 mg/kg for mice. 40–60 mg (0.5-1.0 mg/kg) can be a lethal dosage for adult humans.
Now compare that with this
The oral median lethal dose, or LD50 of potassium cyanide is about 5–10 milligrams per kilogram of body weight for rats, mice, and rabbits.
In other words it actually is more toxic to mice than cyanide and close in toxicity for humans.