In some cases, magnetic resonance imaging (MRI) or CAT scan may detect an aneurysm prior to any rupture. The treatment for unruptured aneurysms is much the same as for ruptured aneurysms. However, these patients are generally more stable and the surgical or endovascular procedure may be done electively rather than under emergency conditions.