Because the question involves etiquette as much as linguistics, I consulted The Emily Post Institute, a leading American authority on manners and civility. Their advice is to say, politely, "Excuse me, would you mind toning down the language? Thanks!”
(The person posting on the Post site suggests that if one feels uncomfortable, one should say nothing.)
I find that I use this approach with my adolescent students, whose energetic invective and scatological commentary can sometimes overstep the bounds of proper decorum. They generally respond well to my "Tone it down, folks!" even when I utter the phrase in a judgmental, preachy and magisterial way.