The actor, who feared the crash could have left him blind or brain damaged, will join other ex-soap stars to perform You Can't Stop The Beat from hit musical Hairspray.
Ricky Hatton will also take part in the show and perform Robbie Williams's Let Me Entertain You.
Dean Gaffney's agent has said the actor is "going to be OK" despite suffering head injuries in a car crash.
Dave Read said: "He's got some nasty head injuries but the good news is that he's going to be OK.
"It was a bad crash and we're grateful it wasn't any worse."
Gaffney was driving to a friend's house from Derby Theatre, where he is starring in 'A Murder is Announced', when the accident occurred.
Dean Gaffney is in hospital following a serious car accident on Wednesday in Derby. The former Eastenders actor was due to star in A Murder Is Announced at Lincoln Theatre next week.The father-of-two was rushed to hospital in a critical condition before being stabilised, it has been reported.