Wake County Sheriff Gerald Baker said someone inside an unidentified car drove by the house and fired at least eight shots into the home on Smith Road, which is located about a mile south of Ten Ten Road.
The young girl was sleeping in the front room of the home when the shooting happened.
She was shot in the upper body around her head area, according to Baker. She was rushed to the hospital and is undergoing surgeries.
Baker described her injuries as "pretty serious," but he said that she is expected to survive.
"Someone is obviously upset with someone in the house, or who they thought was in there," Baker said. "Why and what's that about-we won't speculate."
WATCH: Baker releases new information in shooting of 4-year-old
Nobody else inside the home was injured.
Some of the girl's family reportedly ran out of the home and tried to chase after the vehicle.
However, investigators said they do not yet have a specific enough vehicle description to release that information.
Baker said he and his deputies will release more information as it becomes available.