Some acids, such as sulfuric acid, can corrode stainless steel (source). However, leaving a vinegar-soaked cloth on a faucet overnight won’t damage your stainless steel finish. Using diluted vinegar is also perfectly safe.
Make sure you rinse the vinegar off thoroughly with clean water to prevent minor corrosion. This also applies to any cleaning product you use unless stated otherwise on the label.