Hybrid perovskites represent a new paradigm for photovoltaics, which have the potential to overcome the performance limits of current technologies and achieve low cost and high versatility. However, an efficiency drop is often observed within the first few hundred hours of device operation, which could become an important issue. Here, we demonstrate that the electrode’s metal migrating through the hole transporting material (HTM) layer and eventually contacting the perovskite is in part responsible for this early device degradation. We show that depositing the HTM within an insulating mesoporous “buffer layer” comprised of Al2O3 nanoparticles prevents the metal electrode migration while allowing for precise control of the HTM thickness. This enables an improvement in the solar cell fill factor and prevents degradation of the device after 350 h of operation.