Cervicitis may be caused by a sexually transmitted infection.