The 25-year-old, who sustained the injury in training last month, was operated on at a clinic in Barcelona, Barca said in a statement.
Netherlands coach Bert van Marwijk said last week he was convinced Afellay would be fit in time for next year's European Championship in Poland and Ukraine and that he was a key part of the squad.
Get the best features, fun and footballing frolics straight to your inbox every week.
Thank you for signing up to Four Four Two. You will receive a verification email shortly.
There was a problem. Please refresh the page and try again.