Jeffrey Epstein’s secret communications with attorney Alan Dershowitz — who helped secure the pedophile’s controversial 2008 plea deal — could be made public, it was revealed in court Monday.

The disclosure came as lawyers for self-proclaimed “sex slave” Virginia Roberts Giuffre said they intended to seek the privileged communications to prove that Dershowitz had his own motivations for lining up the sweetheart deal.

Giuffre’s lawyer Charles Cooper said at a hearing Monday he would “seek discovery into Mr. Dershowitz’s attorney-client relationship with Mr. Epstein.”

“Why do we care about that?” asked Manhattan federal court judge Loretta Preska, who is overseeing the defamation lawsuit filed against Dershowitz by Giuffre. Giuffre claims Epstein lent her to Dershowitz for sex, while the Harvard law professor has steadfastly denied the allegations.

“If Mr. Dershowitz was involved with Mr. Epstein in the activities alleged, his communications with Mr. Epstein, and the motivations Mr. Dershowitz had to negotiate the plea deal that has become so controversial will be relevant and important,” Cooper said.

Meanwhile, Giuffre’s lawyers also claimed they planned to file an amended lawsuit against Dershowitz citing claims under the Child Victims Act. The recently enacted law opens a window allowing victims of childhood sexual abuse to file lawsuits against their abusers, even if the statute of limitations has passed.

The amended complaint will also include new libel allegations against Dershowitz for statements made about Giuffre in his new book, “Guilt by Accusation” and an allegation that Dershowitz violated the federal electronic communications Wiretap Act when he secretly recorded a conversation with David Boies, who has previously represented Giuffre.

Dershowitz claims in the tapes, which are currently under forensic examination, Boies admits that Giuffre is lying about her interactions with Dershowitz.

Dershowitz’s lawyer Howard Cooper said they would be moving to dismiss the amended complaint.

“I think there’s irrefutable evidence she wasn’t a child and doesn’t qualify,” Howard Cooper said of Giuffre’s plan to file under the CVA.

Monday’s hearing also turned to discussions of a New York Times report detailing allegations that Boies planned to use footage — allegedly from Epstein’s house and containing images of powerful men having sex with underaged girls — to try and coerce settlements.

Outside court, Dershowitz told reporters he would happily release his communications with Epstein.

“I have nothing to hide,” he said.”It’s up to Epstein’s lawyers.”