The 30-year-old Spain midfielder has a 3cm tear above his calf.
“Xavi’s playing with an injury that could see him miss the World Cup,” said Barcelona boss Pep Guardiola.
Xavi added: “I’m carrying a number of aches but the team has a lot on the line.”