(a) Except as provided in subsection (b) of this section, a person who, at the time of a child’s birth, is the spouse of the person who gave birth to the child by assisted reproduction may not challenge the person’s parentage of the child unless: (1) Not later than two years after the date of birth of the child, the person commences a proceeding to adjudicate the person’s parentage of the child; and (2) the court finds the person did not consent to the assisted reproduction, before, on or after the date of birth of the child, or withdrew consent under § 46b-515.

(b) A proceeding to adjudicate a spouse’s parentage of a child born by assisted reproduction may be commenced at any time if the court determines:

(1) The spouse neither provided a gamete for, nor consented to, the assisted reproduction;

(2) The spouse and the person who gave birth to the child have not cohabited since the probable time of assisted reproduction; and

(3) The spouse never openly held out the child as the spouse’s child.

(c) This section shall apply to a spouse’s dispute of parentage even if the spouse’s marriage is declared invalid after assisted reproduction occurs.