The Justice Department is denying a New York Times report based on John Bolton’s new book — specifically on a meeting the former national security adviser had with Attorney General William Barr about President Trump’s relationship with world leaders.

According to the Times’ reporting on the manuscript, Bolton raised concerns in a meeting with Barr that Trump was “effectively granting personal favors to the autocratic leaders of Turkey and China.”

Barr allegedly responded by voicing his own fears regarding Trump possibly creating the appearance that he had undue influence over active DOJ investigations of companies in the two countries.

In a statement, Justice Department spokeswoman Kerri Kupec accused Bolton of “grossly” mischaracterizing the exchange.

“While the Department of Justice has not reviewed Mr. Bolton’s manuscript, the New York Times’ account of this conversation grossly mischaracterizes what Attorney General Barr and Mr. Bolton discussed,” Kupec said.

“There was no discussion of ‘personal favors’ or ‘undue influence’ on investigations, nor did Attorney General Barr say that the President’s conversations with foreign leaders was improper.

“If this is truly what Mr. Bolton has written, then it seems he is attributing to Attorney General Barr his own current views — views with which Attorney General Barr does not agree.”

A spokesman for Bolton could not immediately be reached by The Post for comment.

Excerpts of the bombshell book were leaked to the New York Times on Sunday, specifically including claims that Trump told Bolton that the withholding of military aid to Ukraine was tied to investigations into Democrats during an August 2019 meeting.

Following the leak of the manuscript, Trump took to Twitter to deny the claims.

Trump is undergoing an impeachment trial in the Senate over his alleged withholding of the critical military aid and a White House meeting for Ukraine in exchange for the announcement of an investigation into Joe Biden, his chief political rival in the 2020 election.

Bolton has been viewed as a key witness for the Democrats’ case against the president. Earlier this month, the former national security adviser, who clashed with administration officials over Ukraine policy, said he would testify if subpoenaed by the Senate.