A high-ranking member of the upstate sex cult Nxivm could be turning on her fellow members, it was revealed in court Thursday.

Prosecutor Moira Penza let slip that Nxivm president Nancy Salzman was “continuing to engage in plea negotiations” with the government.

Outside court, her defense attorney Robert Soloway didn’t deny the claims that Salzman, known inside the group as “Prefect,” might be mulling a plea deal.

“It would be pretty unusual for a defense lawyer to not want to hear what the government has to say,” Soloway told reporters before declining to comment further. Salzman was not in court Thursday, as she is recovering from knee surgery.

The 63-year-old registered nurse would be a powerful get for the government, given her longtime relationship with guru — and alleged sex trafficker — Keith Raniere.

Salzman even helped found the organization that would later draw in co-defendants like failed actress Allison Mack and Seagram heiress Clare Bronfman — plus Salzman’s own daughter, Lauren.

Prosecutors have said that some of the most disturbing alleged conduct, such as the branding and starving of women who were to become Raniere’s sex slaves, occurred on Salzman’s upstate property.

Meanwhile, Brooklyn federal court judge Nicholas Garaufis Thursday ordered that both defense attorneys and prosecutors meet with a magistrate judge, who will mediate ongoing squabbles regarding evidence production between the parties.

Defense attorney Mark Agnifilo has accused prosecutors of hoarding evidence in an attempt to delay the trial, and pleaded with Judge Garaufis to ensure they keep the proposed Jan. 7 date set for jury selection.

“The crystal ball has been stolen from my desk,” Garaufis responded dryly.

While Penza denied that the government had been purposefully keeping back information, she blamed the sheer volume of material — which she equated to 12 floors of printed materials from the Library of Congress — for the delay.

Penza also mentioned the government might not be done doling out indictments, saying it was “highly likely” that one of the six defendants could be slapped with more charges.

“Whether or not additional individuals will be charged is part of an ongoing investigation,” she said.

Garaufis ordered the parties to return to court on Oct. 4.