Vinegar contains acetic acid and lactic acid — ingredients that could cause a chemical burn. To treat a sunburn, use remedies like aloe, anti-inflammatory medications, and cool showers.