• This article presents a comprehensive framework for valuing financial instruments subject to credit risk. In particular, we focus on the impact of default dependence on asset pricing, as correlated default risk is one of the most pervasive threats in financial markets. We analyze how swap rates are affected by bilateral counterparty credit risk, and how CDS spreads depend on the trilateral credit risk of the buyer, seller, and reference entity in a contract. Moreover, we study the effect of collateralization on valuation, since the majority of OTC derivatives are collateralized. The model shows that a fully collateralized swap is risk-free, whereas a fully collateralized CDS is not equivalent to a risk-free one.