Eliot Spitzer and Anthony Weiner are leading their races for city comptroller and mayor, respectively, despite sex scandals that forced both from office, a Quinnipiac University poll found yesterday.

Although Spitzer was hit last night with a challenge to his ballot petitions, he’s flat out romping over Manhattan Borough President Scott Stringer, 48 to 33 percent, for the Democratic nomination.

He’s even ahead among women, who appear more than willing to support the prostitute-patronizing former governor, 44 percent to 32 percent.

Black voters are also solidly in Spitzer’s corner — 61 to 26 percent.

“While I didn’t take a poll to enter this race, the results of these early polls are gratifying,” Spitzer said through a spokeswoman.

With less than two months to go before the Sept. 10 primary, Stringer — who had been running unchallenged — downplayed the results.

“We’re confident that as more voters get to know Scott, he will be the obvious choice for comptroller,” said his spokeswoman, Audrey Gelman.

Meanwhile, Weiner, the former congressman who resigned in 2011 after a sexting scandal — during which he concocted a tale about his Twitter account being hacked — leads the crowded field of Democratic mayoral contenders.

He snagged 25 percent in the poll, with City Council Speaker Christine Quinn right behind at 22 percent.

Former City Comptroller Bill Thompson had 11 percent, Public Advocate Bill de Blasio took 10 percent, and Comptroller John Liu came in at 7 percent.

Twenty-one percent of voters remain undecided.

Quinn, the only woman in the race, barely won the female vote over Weiner, 23 to 21 percent.

Weiner’s support could also be seen in donations. According to campaign-finance reports released last night, he’s raised $830,000 in just two months.