Stomatitis is inflammation of the mouth. It affects the mucous membranes, which are the thin skin coverings on the inside surface of the mouth. The membranes produce the protective mucus, as well as lining the digestive system, from the mouth to the anus.