The gastric mucosa protects itself from gastric acid with a layer of mucus, the secretion of which is stimulated by certain prostaglandins. NSAIDs block the function of cyclooxygenase 1 (COX-1), which is essential for the production of these prostaglandins. Besides this, NSAIDs also inhibit stomach mucosa cells proliferation and mucosal blood flow, reducing bicarbonate and mucus secretion, which reduces the integrity of the mucosa. Another type of NSAIDs, called COX-2 selective anti-inflammatory drugs (such as celecoxib), preferentially inhibit COX-2, which is less essential in the gastric mucosa. This reduces the probability of getting peptic ulcers; however, it can still delay ulcer healing for those who already have a peptic ulcer. Peptic ulcers caused by NSAIDs differ from those caused by H. pylori as the latters appear as a consequence of inflammation of the mucosa (presence of neutrophil and submucosal edema), the former instead as a consequence of a direct damage of the NSAID molecule against COX enzymes, altering the hydrophobic state of the mucus, the permeability of the lining epithelium and mitochondrial machinery of the cell itself. In this way NSAIDs ulcers tend to complicate faster and dig deeper in the tissue causing more complications, often asymptomatically until a great portion of the tissue is involved.
The VacA gene encodes for vacuolating cytotoxin, but its mechanism of causing peptic ulcers is unclear. Such stomach mucosal inflammation can be associated with hyperchlorhydria (increased stomach acid secretion) or hypochlorhydria (reduced stomach acid secretion). Inflammatory cytokines inhibit the parietal cell acid secretion. H. pylori also secretes certain products that inhibit hydrogen potassium ATPase; activate calcitonin gene-related peptide sensory neurons, which increases somatostatin secretion to inhibit acid production by parietal cells; and inhibit gastrin secretion. This reduction in acid production causes gastric ulcers. On the other hand, increased acid production at the pyloric antrum is associated with duodenal ulcers in 10% to 15% of H. pylori infection cases. In this case, somatostatin production is reduced and gastrin production is increased, leading to increased histamine secretion from the enterochromaffin cells, thus increasing acid production. An acidic environment at the antrum causes metaplasia of the duodenal cells, causing duodenal ulcers.Human immune response toward the bacteria also determines the emergence of peptic ulcer disease. The human IL1B gene encodes for Interleukin 1 beta, and other genes that encode for tumour necrosis factor (TNF) and Lymphotoxin alpha also play a role in gastric inflammation. NSAIDs
Taking nonsteroidal anti-inflammatory drugs (NSAIDs) such as aspirin can increase the risk of peptic ulcer disease by four times compared to non-users. The risk of getting a peptic ulcer is two times for aspirin users. Risk of bleeding increases if NSAIDs are combined with selective serotonin reuptake inhibitor (SSRI), corticosteroids, antimineralocorticoids, and anticoagulants.