Coprolalia

noun Etymology: New Latin obsessive or uncontrollable use of obscene language

Merriam-Webster's Collegiate Dictionary