York climbed out of the relegation zone after a 2-0 home win against Exeter.
On-loan Middlesbrough striker Bradley Fewster scored both goals.