York gave themselves a lifeline in their battle to avoid relegation with victory over Southend.
The hosts went ahead after two minutes when a deflection in the area fell to Adam Reed, who fired home.
A poor clearance from Jack O'Connell led to Ryan Leonard equalising for the Shrimpers, but Matty Blair blasted in to earn a win for the Minstermen.
York are two points above the drop zone, with their final game to come against fellow strugglers Dagenham.
The Daggers, who lost 1-0 to bottom club Aldershot, sit one point and one place below in 21st.
The defeat ended Southend's slim chances of making a late play-off charge.
VIEWS FROM THE DRESSING ROOM
York City manager Nigel Worthington told BBC Radio York:
"It was a battling performance; you've got to show character in that side of the game and we got that into the play.
"As I said before the game, we had to keep going for the 90 minutes and I think it was Chris Smith who cleared one off the line at the end - it's important that we do the right things.
"Credit to the players they have given it a go and are doing what we've asked."
Southend United manager Phil Brown told BBC Essex:
"I didn't think we attempted to play any kind of football. We played with a kind of route one mentality. It just wasn't good enough.
"The first goal was a long throw, the second goal they had three in our penalty box and we had eight and we still didn't defend it.
"When you are going to defend like that, I don't think you deserve to win any football games.
"We were found wanting in the battle. We get the ball down and play on the training ground, and then you come on a Saturday and you don't play. I wouldn't like to watch that every week."
York 24 Ingham 02 Oyebanjo 04 Smith 05 McGurk 22 O'Connell 06 Parslow 18 Platt Booked 37 Reed Booked (Challinor - 56' ) 09 Walker (McDaid - 87' ) 10 Chambers 17 Blair (Coulson - 88' ) Substitutes 01 Jameson 16 Fyfield 13 McDaid 20 Challinor 26 McLaughlin 11 Coulson 27 Allen Southend 17 Bentley 02 Clohessy 03 Straker 06 Cresswell Booked 16 Prosser 12 Lund 18 Leonard 26 Laird (Tomlin - 52' ) 07 Eastwood 10 Corr 20 Assombalonga (Hurst - 69' ) Substitutes 01 Smith 04 Spillane 15 Phillips 23 Barker 14 Hurst 34 Pinnock 21 Tomlin