Barnsley came from behind to win a match for the first time since 2010 as David Flitcroft's amazing revival continued.
The Reds took the lead on six minutes when Jim O'Brien's shot was deflected off George Friend and looped over Jason Steele.
After the break, Boro came out firing and equalised through Mustapha Carayol before taking the lead through Curtis Main.
The Reds equalised when Scott Golbourne capitalised on Rory Delap's long-throw before super-sub Jason Scotland grabbed the winner.
It was the first time the Reds came from behind to win a game since their victory at Blackpool in 2010.