On-loan Cardiff substitute Uche Ikpeazu secured a 1-0 Championship victory at bottom side Barnsley, just eight minutes into his debut for the Welsh club.
The 26-year-old striker has only mustered three goals in 22 outings for parent club Middlesbrough this term, but he became an instant hit with Bluebirds fans when he tucked away a 71st-minute chance in a game of few clear-cut opportunities.
At the other end of the pitch, meanwhile, Cardiff ended a woeful run of 27 games in all competitions without a clean sheet.
Liverpool might be a tougher prospect to contain in the FA Cup on Sunday, however, than the Championship's lowest marksmen Barnsley.
The hosts did have the first chance of the night when Liam Kitching's searching ball into the box was only headed as far as Josh Benson by Mark McGuinness - and the home midfielder's firm 15-yard volley was well held by Cardiff goalkeeper Alex Smithies.
The visitors then lost skipper Sean Morrison to injury, while Tommy Doyle was wayward with two hopeful edge-of-the-box efforts either side of the quarter-hour mark.
The Tykes were posing a slightly greater first-half threat with Jordan Williams' side-footed volley across the face of goal palmed behind by Smithies following Domingos Quina's left-wing cross to the far post.
Devante Cole also blasted narrowly off target from the edge of the box and Kitching's header flashed wide after he rose unchallenged to meet Callum Styles' in-swinging corner on the stroke of half-time.
A drab start to the second period saw home boss Poya Asbaghi make the first decisive move from the bench when he introduced Carlton Morris from the bench just past the hour and away chief Steve Morison immediately responded by throwing on Ikpeazu.
After Kitching had aimed high and wide from 15 yards with the first second-half attempt on goal of any description after 70 minutes, Ikpeazu then became an instant Bluebirds favourite from the next attack of the game.
The 6ft 3in striker used all of his brawn to brush off the attentions of Barnsley skipper Mads Andersen and latch on to a long ball forward, before scuffing a 10-yard shot into an onrushing Brad Collins' bottom-right corner.
It was the Welsh side's only on-target effort of the evening and Ikpeazu celebrated by jumping into the jubilant away end.
Will Vaulks went close to doubling the lead with a thumping 20-yard volley before stoppage-time drama saw home substitute Aaron Leya Iseka head wide from a Claudio Gomes free-kick and then fire in, only to be denied by an offside flag.
The result represented a fifth-straight league defeat for the hosts, while it saw Cardiff pull a little further away from the relegation zone.
Barnsley: Collins, Williams, Styles, Kitching (Bassi 77'), Andersen, Benson (Leya 77'), Gomes, Vita, Quina (Morris 62'), Helik, Cole. Subs Not Used. Walton, Moon, Palmer, Hondermarck.
Cardiff City: Smithies, Drameh, Ng, Morrison (Flint 11'), McGuinness, Doughty (Ikpeazu 63'), Vaulks, Wintle, Doyle, Watters (I.Davies 56'), Hugill. Subs Not Used: Phillips, Bagan, Pack, Collins.