Cheating is legal. Publishing people's PII is not.
http://www.theweek.co.uk/62723/adultery-laws-where-is-cheati...
I agree with sibling replies - the illegality of an action is unimportant when looking at the morality of it.
It does make it more wrong, without getting into personal opinions. Morals vary even more across communities, cultures and countries. It's a fallacy to think yours is universal.