If a woman hides the fact that the child is not her husband child while married... are there any legal consequences about that woman?

Or even for the man
Just curious
If a woman hides the fact that the child is not her husband child while married... are there any legal consequences about that woman?
Post Opinion