According to CCC 1452:
1452 When it arises from a love by which God is loved above all else, contrition is called "perfect" (contrition of charity). Such contrition remits venial sins; it also obtains forgiveness of mortal sins if it includes the firm resolution to have recourse to sacramental confession as soon as possible.51
51 Council of Trent (1551): DS 1677.
Thus, all sins, venial or mortal, can be forgiven by perfect contrition—that a sinner must sincerely repent and confess, and that's enough for God to forgive all sins, even the ones against Holy Spirit (as long as the sinner shows repentance).
What are, either Biblical, or infallible Catholic, statements, supporting this?