Aphthous stomatitis stomatitis may show herpes virus within the epithelium of the mucosa, but without any productive infection. In some persons, attacks of ulceration occur at the same time as asymptomatic viral shedding and elevated viral titres. In some instances, recurrent mouth ulcers may be a manifestation of an allergic reaction. Possible allergens include certain foods ("e.g.", chocolate, coffee, strawberries, eggs, nuts, tomatoes, cheese, citrus fruits, benzoates, cinnamaldehyde, and highly acidic foods), toothpastes, and mouthwashes. Where dietary allergens are responsible, mouth ulcers usually develop within about 12–24 hours of exposure. Sodium lauryl sulphate (SLS), a detergent present in some brands of toothpaste
Stomatitis may be accompanied by glossitis and cheilitis. Allergens that may cause allergic contact stomatitis in some individuals include cinnamaldehyde, Balsam of Peru, peppermint, mercury, gold, pyrophosphates, zinc citrate, free acrylic monomer, nickel, fluoride, and sodium lauryl sulfate. These allergens may originate from many sources, including various foods and drink, chewing gum, toothpaste, mouthwash, dental floss, dental fillings, dentures, orthodontic bands or wires, and many other sources. If the substance containing the allergen comes into contact with the lips, allergic contact cheilitis can occur, together with allergic contact stomatitis. The diagnosis is confirmed by patch test, and management is by avoidance