Well, if I was in your situation, I’d strongly consider quitting, but I recognize that not everybody is able to quit their job.
You could consider telling your boss that you’re uncomfortable with his misogynist language, but a) that still might put your job in jeopardy and b) it’s very hard to reason with misogynists. They usually just end up taking your genuine concerns as evidence of you being a “humorless feminist,” unfortunately.
Probably the most prudent thing to do would be to stick it out until you’re leaving the job, since you said you won’t be there much longer. As much as it sucks to work for a bigot, sometimes you gotta do it. (Unless you think you could get a better job, in which case, go for it!)