The girl had severe injuries to her neck, abdomen, chest and back and was in hospital for three weeks, police said.
Hayes, 21, of Ripon, and a 17-year-old, who can't be named for legal reasons, appeared at York Magistrates' Court on Tuesday (March 11).
Results that may be inaccessible to you are currently showing.
Hide inaccessible results