CNN host Anderson Cooper claimed Wednesday that his Twitter account was hacked, and was used to send a tweet that called President Trump a "pathetic loser."

"Just woke up to find out someone gained access to my twitter account," Cooper tweeted Wednesday. "I have not sent a tweet in days or replied to any tweets. We are looking into how this happened."

Trump on Wednesday commented on the Alabama Senate election, tweeting, "The reason I originally endorsed Luther Strange (and his numbers went up mightily), is that I said [Republican nominee] Roy Moore will not be able to win the General Election. I was right! Roy worked hard but the deck was stacked against him!"

Cooper's account replied, "Oh Really? You endorsed him you tool! Pathetic loser."

CNN backed up Cooper's claim that his account was hacked by saying Cooper didn't send the tweet, and that the company was trying to figure out what happened.

"This morning someone gained access to the handle @andersoncooper and replied to POTUS," CNN said. "We're working with Twitter to secure the account."