That's why the bolts are cad plated. To prevent corrosion between dissmilar metals.
Grade 8 bolts that are yellowish in color are probably cad plated. Lower grade bolts that are yellowish in color will probably be colored zinc plated. Aerospace bolts will be cad plated.