Yahoo has revealed that some Yahoo Mail accounts have been accessed by unknown attackers using passwords allegedly stolen from third-party sources.