The late GOP Sen. John McCain’s family plans to support ex-Vice President Joe Biden’s presidential bid — a stunning rebuke of President Trump, who enraged the family with his repeated attacks on the former POW both before and after his death.

Sources close to Biden’s presidential campaign and the McCains said that McCain’s widow, Cindy, 64, and daughter Meghan, 34, a host on “The View,” will publicly back Biden in the hope he can take the Oval Office from Trump, the Washington Examiner reported.

McCain, who died in August of brain cancer at the age of 81, was widely respected by many colleagues from both sides of the aisle.

But Trump — who got draft deferments to stay out of Vietnam — repeatedly said McCain was not a hero because he had been captured.

The former naval aviator spent years in the Hanoi Hilton, undergoing torture at the hands of his enemies.

Even after his death, the president continued to excoriate McCain over his vote against repealing ObamaCare and saying he never liked him.

Meghan McCain fired back on the show she co-hosts.

“Listen, he spends his weekend, obsessing over great men because he knows it and I know it and all of you know it. He will never be a great man,” McCain said.