However, Cavani admits that he would be tempted by a move to Spain, but is focusing on trying to win the scudetto for now.
"Real Madrid and Barcelona are two great clubs, amongst the strongest in the world, and it is obvious that they can attract," Cavani told Gazzetta dello Sport.
"The tension rises just when you name those two sides. However, I honestly don't know whether there is the option to join one of those.
"At the moment I have the opportunity to win the Scudetto with Napoli and I'm just concentrating on that aim. And I still have four years left on my contract. You never know what will happen in football, but I just work on a day by day basis to get the best."
Cavani has netted 18 league goals in 20 Serie A games so far this season.