The 29-year-old "Girls" creator, who had discussed her health problems extensively on social media, will be released from the unnamed hospital post the surgery, reported People magazine.
"Lena Dunham has been very public with her personal bouts with endometriosis. This morning, she suffered from an ovarian cyst rupture and has been taken to the hospital.
"Lena will be undergoing surgery at an undisclosed hospital. We thank you for you understanding and hope that Lena's privacy will be respected," her spokesperson, Cindi Berger, said in a statement.