The 23-year-old winger has been out of action since the third weekend of the campaign with the problem and will now face a further month on the sidelines.
"David has had a minor operation this week," assistant boss Paul Raynor said. "He had a little bit of a setback in training so he went to see a specialist.
"It is something that if we didn't get it tidied up now it could be a recurring problem. It was better we did it now and hopefully he will be back in three-to-four weeks.
"Once it is sorted, fingers crossed he will be available for the rest of the season."
There is better news with Michael O'Connor's groin injury as he has returned to training.
The midfielder sustained the problem on international duty with Northern Ireland last month and he could be just a week away from fitness.
"Michael is back in training this week, hopefully he will join in with the lads on Monday," Raynor added. "He is working very hard and very well.
"Hopefully he will be back a week on Saturday. The good thing is with the way we work our injured players it doesn't take them too long to get back once they are in full training."