A 12-year-old girl is clinging to life after her stepfather stabbed her in the head — and also attacked her mother in a violent rampage earlier this week, cops said Friday. 

Joshua Burnside, 28, repeatedly knifed the pre-teen in the head and slashed her on the face during the burst of violence around 11:15 p.m. Wednesday inside the family’s apartment on East 173rd Street near Boone Avenue in Charlotte Gardens, police said. 

He also stabbed his 31-year-old wife in the stomach and slashed her on the face, authorities said. 

A 12-year-old girl is clinging to life after her stepdad stabbed her inside the family’s Charlotte Gardens apartment Wednesday night, cops said. Kyle Mazza/Shutterstock

Two younger kids, a 5-year-old boy and a 2-year-old girl, were at home when the violence erupted, but they were not injured, police said.

The gravely injured 12-year-old — who suffered facial bruising in addition to the stab wounds — was rushed to Cohen Children’s Medical Center, where she is listed in critical condition, according to authorities.

Her mother and the two younger kids were taken to Jacobi Medical Center in stable condition, police said. 

The girl’s 31-year-old mother was also knifed repeatedly during the burst of violence, cops said. Kyle Mazza/Shutterstock

Burnside, who was found with an injury to his left wrist, was taken to St. Barnabas Hospital in stable condition, cops said. It was not immediately clear how he was hurt.

He was arrested and charged with assault, criminal possession of a weapon and acting in a manner injurious to a child, police said. 

Burnside was arrested and charged with was arrested and charged with assault, criminal possession of a weapon and acting in a manner injurious to a child, police said. Kyle Mazza/Shutterstock

His arraignment was pending late Friday afternoon. 

Police did not immediately have details on whether the family had a history of domestic violence.