In cystic fibrosis, the patient has a defective CF gene or a gene mutation. A defective CF gene makes it hard for chloride, a part of salt, to move through cells. This causes abnormal mucus secretions and salt loss in the body.