CCC 1259
Christian Mystery›SECTION TWO THE SEVEN SACRAMENTS OF THE CHURCH›CHAPTER ONE THE SACRAMENTS OF CHRISTIAN INITIATION›VI. The Necessity of Baptism
For catechumens who die before their Baptism, their explicit desire to receive it, together with repentance for their sins, and charity, assures them the salvation that they were not able to receive through the sacrament.