Tofacitinib is a medication used to treat rheumatoid arthritis, psoriatic arthritis, and ulcerative colitis. Common side effects include diarrhea, headache, and high blood pressure. Serious side effects may include infections, cancer, and pulmonary embolism.