In this paper, we study the credit default swap (CDS) pricing with counterparty risk in a reduced form model. The default jump intensities of the reference firm and counterparty are both assumed to follow the mean-reverting CIR processes with independent jumps respectively and a common jump. The approximate closed-form solutions of the joint survival probability density and the probability density of the first default can be obtained by using the PDE method. Then with the expressions of the probability densities, we can get the formula for the CDS price with counterparty risk in a reduced form model with a common jump. In the numerical analysis part, we find that the default of the reference asset has a greater impact on the CDS price than that of the default of counterparty after introducing the common jump process.