Emerson Hyndman scored a stoppage-time winner as Fulham came back to inflict a significant blow to Cardiff City’s play-off hopes.
Lex Immers’ header gave Cardiff the lead but Scott Parker’s first goal of the season brought Fulham level.
Hyndman scored from close range to secure victory for Fulham, who move 10 points clear of the relegation zone.
Cardiff are five points adrift of the play-off places with five games remaining.
Russell Slade’s side failed to capitalise on play-off rivals Sheffield Wednesday’s 4-1 defeat at Bristol City.
Both sides had chances during an open first half with Aron Gunnarsson’s header saved by Marcus Bettinelli and Bruno Ecuele Manga heading over from Peter Whittingham’s corner.
At the other end David Marshall parried fellow Scottish international and former Cardiff striker Ross McCormack’s free-kick.
Cardiff went ahead when Scott Malone combined down the left with Gunnarsson, whose cross was met by Immers to head home his fifth goal of the season.
Fulham levelled in the opening minute of the second half when Cardiff’s defence were caught cold as Moussa Dembele set up former England midfielder Parker, who fired home from a tight angle.
Gunnarsson and Sean Morrison squandered chances for Cardiff, who were less effective in the second half.
Dembele was denied by Marshall and McCormack’s shot was deflected onto the bar as the home side chased a later winner.
They were rewarded in stoppage time when United States international Hyndman struck from close range following a scramble at a corner.