In this paper, we present a new pricing model for vulnerable options, with time-varying variances for each asset described by Generalized Autoregressive Conditional Heteroscedasticity processes and correlated with the return of the asset. By connecting the underlying asset and the counterparty's assets through the market factor channel, the proposed model also captures stochastic correlation between the underlying asset return and the return of the counterparty's assets. The correlation depends on the levels of the variances of both assets and the market index as well. In the proposed framework, the closed-form solution for vulnerable options is derived and numerical results are presented to investigate the impact of counterparty default risk.