Family relationships - cousin is making me uncomfortable

My cousins are visiting for a family function this weekend and stay with us while they’re here. They’re probably the cousins I was around most growing up since we’re all closest in age. Around the time of late highschool and college, things started to feel off and Iwouldnt look forward to seeing them. My cousin about 3years older than me is crass, comfortable with joking about sex and his privates, he does weird stuff like walks around half naked after showers, or yesterday he left the bathroom door cracked open (it has a lock) so when I walked in he was naked on the toilet. “Damn, you don’t knock, cuz?” It was really awkward and he’ll create situations like that all the time. His brother is similar in how he acts but less obvious. He’s never had a girlfriend but is obsessive with talking about “hoes”

I feel like the rest of my family would be mad at me if I mentioned feeling uncomfortable, like I was accusing them of something bad.

But I’m starting to hate family time hanging out with them.