Getting shaving foam in your mouth may cause minor irritation, like a burning sensation or upset stomach.
Rinse your mouth with water and seek medical attention if symptoms persist or worsen.