The borrower whose name is on the loan is on the hook for all of the debt. Cosigning a student loan for a spouse is a risk, in case of divorce. Additional considerations may apply in community property states.