“Girls” creator and star Lena Dunham has been hospitalized to undergo surgery for a ruptured ovarian cyst.

“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,” her spokesperson, Cindi Berger, told People in a statement. “Lena will be undergoing surgery at an undisclosed hospital. We thank you for you understanding and hope that Lena’s privacy will be respected.”

Dunham has discussed her health problems extensively on social media. Ahead of the launch of the latest season of “Girls,” Dunham wrote on Facebook, “I just want to let you know that, while I am so excited for ‘Girls’ to return on Feb. 21, I won’t be out and about doing press for the new season. As many of you know I have endometriosis, a chronic condition that affects approximately 1 in 10 women’s reproductive health. I am currently going through a rough patch with the illness and my body (along with my amazing doctors) let me know, in no uncertain terms, that it’s time to rest… So many women with this disease literally don’t have the option of time off and I won’t take it for granted. Wishing you all health & happiness, in whatever form suits you.”

Season 5 of “Girls” is currently airing on HBO on Sundays.