New York City Public Advocate Bill de Blasio is close to avoiding a runoff in the Democratic mayoral primary, according to a new poll released 13 days before the election.

De Blasio, once a sizable underdog, has solidified his position at the head of the Democratic pack, a Quinnipiac University survey released Wednesday shows. De Blasio claims the support of 36 percent of those likeliest to vote in the Democratic primary. To avoid a runoff, a candidate must cross the 40 percent threshold.

City Council Speaker Christine Quinn runs second with 21 percent support while former city comptroller Bill Thompson is close behind with 20 percent. Embattled former congressman Anthony Weiner lags far behind with 8 percent support.

Campaigning as the most liberal candidate, de Blasio has built his lead during the last two weeks. An Aug. 13 Quinnipiac poll showed him at 30 percent. A poll of a potential runoff between de Blasio and Quinn shows him leading her by nearly 30 points.

“The political cliché, that the most liberal candidate wins the Democratic primary in New York, seems to be alive and well," said Quinnipiac polling director Maurice Carroll.