Counterparty risk is the possibility that the other party in a financial transaction will fail to meet their obligations. In crypto, counterparty risk is significant when using centralized exchanges (which can be hacked or become insolvent), lending platforms, or custodial services. DeFi protocols aim to minimize counterparty risk by using smart contracts that execute automatically, though they introduce their own risks such as smart contract bugs.