Neonatal herpes is a serious infection caused by the herpes simplex virus (HSV) that affects newborns. The virus can be transmitted from the mother to the baby during pregnancy, delivery, or after birth. There are two types of HSV: HSV-1 and HSV-2. Both types can cause neonatal herpes, though HSV-2 is more commonly associated with genital infections.