If you check the Galvanic Series Chart, carbon steel is anodic to stainless steel, and it, the carbon steel, will experience accelerated corrosion dependent on how the surrounding environment supports corrosion. To stop the corrosion, electrically isolate the carbon steel from the stainless steel with an isolation flange, bolts inclusive, or use similar stainless steel. To stop the corrosion, eliminate the electrical conductivity between the two metals.