Primary election
On September 12, 2017, Cabrera won 55% of the vote in the New York Democratic Primary election, to 35% for challenger Randy Abreu and 10% for Felix Perdomo.