A Halloween candy sold in New Jersey and 12 other states has been recalled because of an undisclosed allergen.