Hernias can be dangerous. Surgery is the only way to correct an epigastric hernia. If your health care provider has recommended an epigastric hernia repair, the decision whether or not to have the procedure is yours.