The Catechism in Questions & Answers

653. Are there sins that cannot be forgiven?

Yes. Blasphemy against the Holy Spirit is a sin for which there is no forgiveness. Concerning this, the Son of God said: “He who blasphemes against the Holy Spirit never has forgiveness, but is subject to eternal condemnation” (Mark 3: 29).