The official website for The Settlers of Catan

Question about Base Game Trade - May I trade via a harbor where an opponent has a settlement?

Answer

No. You only have the possibility to trade with the owner of the harbor himself, maybe by offering him something that he, in turn, could trade via his harbor.