Scott Parker’s men looked to be cruising to a comfortable three points when they took a deserved two-goal first-half lead, thanks to strikes from Josh Brownhill and Maxime Esteve.
But Cardiff reduced the deficit on the stroke of half-time – becoming the first side to score a league goal past Burnley since December 21 – to set up a nervy second-half.
The Clarets had to ride their luck late on as they came under pressure, but ultimately they held on for a 2-1 win to maintain the pressure at the top of the Championship table.
Here’s how Burnley’s players rated:

13. SUB: Josh Laurent - 6/10
For Hannibal, 71 Gave Burnley more of a physical presence in the midfield area. The one looking to break forward and close down. Photo: Richard Martin-Roberts

14. SUB: Lyle Foster - 6/10
For Flemming, 71 Had a golden chance to get back among the goals at the death but bizarrely opted to pass. So low on confidence. Photo: Dan Istitene

15. SUB: Jeremy Sarmiento - 6/10
For Edwards, 79 Carried out some important defensive work late on. Another one to pick up a late booking as Burnley saw out the game. Photo: Dan Istitene

16. SUB: Joe Worrall - 6/10
For Anthony, 88 Won a late scooping header in the dying seconds as Burnley were forced to cling on for their victory. Photo: Matt McNulty