The most serious complication of appendicitis is an infection of the lining of your abdominal cavity (peritonitis). This may occur if your appendix ruptures (perforates) and the contents of your intestines and infectious organisms invade the peritoneal cavity. Peritonitis is a medical emergency.