James Dashner, the author of “The Maze Runner” young-adult series, has been dropped by his literary agent amid allegations of sexual misconduct.

Mr. Dashner’s agent, Michael W. Bourret, said in a statement to The Associated Press on Wednesday that “under the circumstances,” he could no longer represent Mr. Dashner.

“I couldn’t in good conscience continue working with James, and I let him go yesterday,” Mr. Bourret said.

Comments left on the website of School Library Journal, a monthly magazine for librarians, included allegations about Mr. Dashner, 45; Jay Asher, the author of “Thirteen Reasons Why”; and other popular writers of young-adult novels.