The danger lurks only in unused water, not in water that has been boiled or used in salting or pickling.
The risk is confined to untreated water, but not to water that has been sterilized by boiling or used in food preparation methods like salting or pickling.