The United States has lost its first cyberwar — to North Korean despot Kim Jong-un.

Sony Pictures Entertainment canceled the release of the radioactive Seth Rogen/James Franco comedy “The Interview” on Wednesday, after terror threats by the dictator’s hacker henchmen sparked a boycott by America’s biggest theater chains.

Sony’s caving comes as US intelligence officials confirmed to The Post that a monthlong onslaught of embarrassing leaked in-house data and a series of escalating threats against the studio and potential audience members are indeed Kim’s handiwork. The North Korean leader has denied responsibility while praising the hackers, a group calling itself “Guardians of Peace.”

“The Interview” is “an act of war,” Kim has griped of the movie, which depicts the nuke-loving dictator getting assassinated in spectacular fashion — via a missile that blows up his head.

After scuttling the movie’s Christmas release, Sony went a step further, announcing Wednesday night that the film would never see the light of day, either on DVD or through any kind of online digital release or on-demand TV.

News of the film’s demise sparked an online outcry by such odd bedfellows as actor Rob Lowe and GOP stalwart Newt Gingrich.

“Saw @Sethrogen at JFK,” Lowe tweeted.

“Both of us have never seen or heard of anything like this. Hollywood has done Neville Chamberlain proud today,” the actor added, referring to Britain’s notorious Hitler-appeasing prime minister.

“Wow,” he continued. “Everyone caved. The hackers won. An utter and complete victory for them. Wow.”

Gingrich soon weighed in, slamming Sony’s decision to cancel the film as a “very very dangerous precedent.”

“It wasn’t the hackers who won,” the former Republican presidential candidate tweeted in response to Lowe.

“It was the terrorists and almost certainly the North Korean dictatorship. This was an act of war.”

Gingrich continued, “No one should kid themselves. With the Sony collapse America has lost its first cyberwar. This is a very very dangerous precedent.”

Sony pulled the plug on the movie hours after Regal Entertainment, AMC Entertainment and Cinemark — the country’s three biggest movie mega-chains — joined Cineplex Entertainment and Carmike Cinemas in saying they would not screen the movie at their theaters.

“Remember the 11th of September 2001,” the hackers said in a statement issued Tuesday, warning that “The Interview” audience members would be risking their lives.

In other developments Wednesday, government sources told Reuters that they feared the hackers may never be brought to justice if they are under Kim’s protection.

And Sony — desperate to recoup some of its $42 million investment in the movie — is weighing releasing it on premium video-on-demand, a studio insider told Variety.