The Reds opened the scoring when Mohamed Salah scored his fifth PL goal of the season after he was quickest to react to Georginio Wijnaldum's blocked shot.
Cardiff's Sean Morrison had a goal disallowed for offside, before Mane doubled Liverpool's advantage when he smashed the ball into the far corner on 66 minutes.
Liverpool conceded their first PL home goal of the season when Callum Paterson netted from close range on 77 minutes.
Late goals from Xherdan Shaqiri and Mane wrapped up the win, moving Liverpool three points clear of Manchester City, who play Tottenham Hotspur on Monday.
Cardiff are 17th on five points.
Liverpool: 3 Nov v Arsenal (A)
Cardiff: 3 Nov v Leicester (H)