A court-appointed lawyer left documents containing the names and addresses of child-abuse victims — and even explicit details about their cases — to be scattered along a busy Midtown street, The Post has learned.

The alleged breach of confidentiality involved 13 city and state case files that detailed juvenile-delinquency and custody cases, too.

“That lawyer should have shredded those files . . . Anybody could get [my son’s] information now and do anything with it,’’ fumed a 46-year-old woman whose child was the 13-year-old victim of a 2009 physical assault detailed in one file.

The records came from the nearby office of state-appointed lawyer Robert F. Himmelman, who litigated the cases.

Himmelman told The Post that he put the documents in large plastic bags and left them on the 23rd floor of his Madison Avenue office to be recycled.

“I don’t know how they got on the street,” he said. “They certainly don’t belong in the middle of the street. I’m sorry they wound up there.”

A passer-by stumbled on the large envelopes blowing around East 41st Street between Madison and Park avenues around 9 a.m. Tuesday.

“The first thing I saw was medical records,’’ the man told The Post. “There are investigation reports about children being sexually abused. It’s bad.”

Some of the envelopes had tire tracks on them.

The files included copies of birth certificates, Social Security numbers and details involving alleged abuse cases with the Administration for Children’s Services. They were dated between 2007 to 2011. All were closed.

One file involved a 2009 ACS case that described in graphic detail how a child was sexually abused at the hands of her alcoholic father between the ages of 12 and 14. The victim’s medical records from Montefiore Medical Center were included.

A 23-year-old man who was arrested as a young teen and whose mug shot and other personal information was included among the files, said, “It was just irresponsible. I feel like my privacy has been exposed.”

Court sources said such files should be shredded.

A state court rep said: “Should we be officially notified, we would provide notification for this to be reviewed by a third party.”

An ACS spokesman added, “The loss of this private attorney’s confidential files is concerning, and we will review what occurred and take appropriate action.’’

Himmelman said he “wasn’t aware” that the confidential files should have been shredded.

“I think I probably should look into getting some company that specializes in disposing this kind of paperwork,” Himmelman said.

Additional reporting by Rich Calder and Reuven Fenton