Social media stock. Stock photo of the WhatsApp app icon on a smartphone. Picture date: Friday March 15, 2019. See PA story TECHNOLOGY SocialMedia. Photo credit should read: Nick Ansell/PA Wire URN:41898780 (Press Association via AP Images)
Nick Ansell/AP
Social media stock. Stock photo of the WhatsApp app icon on a smartphone. Picture date: Friday March 15, 2019. See PA story TECHNOLOGY SocialMedia. Photo credit should read: Nick Ansell/PA Wire URN:41898780 (Press Association via AP Images)
Now playing
02:08
WhatsApp warns of spyware vulnerability
SAN FRANCISCO, CALIFORNIA - OCTOBER 04: Project Include Co-Founder & CEO Ellen Pao speaks onstage during TechCrunch Disrupt San Francisco 2019 at Moscone Convention Center on October 04, 2019 in San Francisco, California. (Photo by Steve Jennings/Getty Images for TechCrunch)
Steve Jennings/Getty Images
SAN FRANCISCO, CALIFORNIA - OCTOBER 04: Project Include Co-Founder & CEO Ellen Pao speaks onstage during TechCrunch Disrupt San Francisco 2019 at Moscone Convention Center on October 04, 2019 in San Francisco, California. (Photo by Steve Jennings/Getty Images for TechCrunch)
Now playing
04:53
Ellen Pao: The biggest myth about tech is that work is a meritocracy
AirTag
Apple
AirTag
Now playing
01:17
See AirTag, Apple's new device for tracking your lost stuff
Google Earth's new timelapse feature
Google
Google Earth's new timelapse feature
Now playing
01:09
Google Earth's new Timelapse feature shows 40 years of climate change in just seconds
Now playing
01:32
Scientists turned spiderwebs into music and it sounds like a nightmare
Elon Musk's Neuralink says this monkey is playing Pong with its mind
From Neuralink/Youtube
Elon Musk's Neuralink says this monkey is playing Pong with its mind
Now playing
01:41
Elon Musk's company says this monkey is playing Pong with his mind
CNN
Now playing
02:36
The truth behind Covid-19 vaccines for sale on the dark web
Now playing
05:41
NFTs have completely transformed these digital artists' lives
Boston Dynamics
Now playing
00:48
Boston Dynamics' newest robot has tentacle-like grippers
Energy and Commerce Committee/YouTube
Now playing
02:50
US lawmakers question tech CEOs on misinformation
Now playing
00:55
This robot's 'self-portrait' NFT just sold for nearly $700,000
Now playing
03:19
Slack CEO: We made an 'unforced error' in DM roll out
WASHINGTON, DC - FEBRUARY 10:  Chairman Sen. Bernie Sanders, (I-VT) speaks as Neera Tanden, President Joe Bidens nominee for Director of the Office of Management and Budget (OMB), appears before a Senate Committee on the Budget hearing on Capitol Hill on February 10, 2021 in Washington, DC. Tanden helped found the Center for American Progress, a policy research and advocacy organization and has held senior advisory positions in Democratic politics since the Clinton administration. (Photo by Andrew Harnik-Pool/Getty Images)
Pool/Getty Images
WASHINGTON, DC - FEBRUARY 10: Chairman Sen. Bernie Sanders, (I-VT) speaks as Neera Tanden, President Joe Bidens nominee for Director of the Office of Management and Budget (OMB), appears before a Senate Committee on the Budget hearing on Capitol Hill on February 10, 2021 in Washington, DC. Tanden helped found the Center for American Progress, a policy research and advocacy organization and has held senior advisory positions in Democratic politics since the Clinton administration. (Photo by Andrew Harnik-Pool/Getty Images)
Now playing
03:04
Sanders: 'I don't feel comfortable' about Trump's Twitter ban
LONDON, ENGLAND - JANUARY 16: Prince Harry, Duke of Sussex, the Patron of the Rugby Football League hosts the Rugby League World Cup 2021 draws for the men's, women's and wheelchair tournaments at Buckingham Palace on January 16, 2020 in London, England. The Rugby League World Cup 2021 will take place from October 23rd through to November 27th, 2021 in 17 cities across England. (Photo by Chris Jackson/Getty Images)
Chris Jackson/Getty Images
LONDON, ENGLAND - JANUARY 16: Prince Harry, Duke of Sussex, the Patron of the Rugby Football League hosts the Rugby League World Cup 2021 draws for the men's, women's and wheelchair tournaments at Buckingham Palace on January 16, 2020 in London, England. The Rugby League World Cup 2021 will take place from October 23rd through to November 27th, 2021 in 17 cities across England. (Photo by Chris Jackson/Getty Images)
Now playing
03:19
BetterUp CEO explains Prince Harry's role at the tech startup
Rally Studios
Now playing
02:13
One-shot drone video of bowling alley mesmerizes internet
MyHeritage
Now playing
01:01
Watch old photos come to life using AI
(CNN Business) —  

WhatsApp has fixed a security bug that allowed hackers to take over the messaging app with a malicious GIF.

The hack could be triggered when a user opened a malicious GIF in their gallery. After the GIF was opened, the app’s contents could have been exploited, revealing previous chat history.

Devices running Android 8.1 and 9 could have been susceptible to the hack. A researcher called Awakened discovered the vulnerability and wrote about it in a blog post last week.

WhatsApp, which is owned by Facebook (FB), released a patch last month, though it said it’s unlikely anyone was actually hacked using the technique Awakened revealed.

“We have no reason to believe this affected any users, though of course we are always working to provide the latest security features to our users,” a WhatsApp spokesperson told CNN Business.

To update WhatsApp, iPhone users should open the App Store and select updates. Select “WhatsApp” and press update. On Android, users need to open the Play Story and tap on the three lines in the upper left corner. Select “My apps & games” from the menu, then select WhatsApp and tap the Update button.

The popular messaging app is often the target of hacks. In May, a vulnerability was discovered that let hackers call a person on WhatsApp and place malicious code on their phone in order to see their personal information. A patch was also released to fix this.