Taylor Swift ’s three planned shows in Vienna this week were canceled after government officials said they arrested two people over a planned terrorist attack at her concert stadium.

An Austrian ticket seller and a concert promoter said on Instagram Wednesday that the three Eras Tour shows at Ernst Happel Stadium in Vienna wouldn’t go on.

General view outside Happel stadium after Taylor Swift’s three concerts this week were canceled after the government confirmed a planned attack at the stadium in Vienna, Austria, August 8, 2024. REUTERS/Elisabeth Mandl

General view shows outside of Happel stadium after Taylor Swift’s three concerts this week were canceled after the government confirmed a planned attack at the stadium in Vienna, Austria, August 8, 2024. REUTERS/Elisabeth Mandl

“We have no choice but to cancel the three scheduled shows for everyone’s safety,” they said.

Two people, including a 19-year-old Austrian citizen, were arrested after planning a terrorist attack, Austria’s interior ministry said Wednesday. Officials said one of the suspects had sworn an oath of allegiance to Islamic State and chemical substances were seized from his apartment. Both suspects had been radicalized by the internet, officials said.

Swift hasn’t commented on the cancellation. A representative for Swift didn’t return a request for comment.

The singer was set to perform on Thursday, Friday and Saturday in the Austrian capital. She has been touring Europe this summer as part of her sold-out, record-breaking tour .

Her website said that all tickets for her Vienna dates would be automatically refunded. She is scheduled to perform the last dates of her European leg in London starting next week.

StubHub, the ticketing marketplace, said it would provide its ticket buyers with a 120% voucher toward another purchase. Those who prefer a cash refund instead have the option to request it, the company said in a statement.

The cancellation stands to hurt local businesses in Vienna. Swift’s concerts usually offer a boon to the local economy , with her fans, dubbed Swifties, coming to the area and spending money there.

Last week, a teenager in Southport, England, fatally stabbed three children and injured several others at a Taylor Swift-themed dance event. Swift said the attack left her “completely in shock.” The stabbing instigated riots in the country.

White House press secretary Karine Jean-Pierre , when asked Wednesday if President Biden was aware of the arrests, said, “I know that local law enforcement is taking the lead here. I just don’t have anything to share beyond that.”

The foiled attack had echoes of the 2017 bombing at an Ariana Grande concert in Manchester, England. Islamic State claimed responsibility for the attack that killed 22 people and injured dozens more.

Write to Alyssa Lukpat at alyssa.lukpat@wsj.com