Twitter users have been urged to change their passwords after a glitch left log-in details exposed.

Twitter says it has fixed the glitch and found no indication passwords were stolen or misused.

It wants its 330 million users to change their passwords “out of an abundance of caution”.

While passwords were believed to have been exposed for several months, but Twitter only discovered the bug a few weeks ago.

The glitch was related to Twitter's use of ‘hashing’ technology, which is used to mask passwords as a user enters them by replacing encoding them into a string of numbers and letters.

The bug meant passwords were written on an internal computer log before the hashing process was completed.

“We are very sorry this happened,” Twitter said.