Undead are not living or dead, but technically if they have free will then they would have rights. But to my knowledge most weaker undead are mindless servant.
I could just imagine a team of adventurers going up to some skeleton or lich and trying to kill him for being evil, only for him to bring them to court for going against his freedom of expression.