|Castleford (6) 28|
|Tries: Flynn 3, Patrick, Gale Goals: Gale 4|
|Widnes (14) 38|
|Tries: Leuluai, Ah Van 2, Bridge, White 2, Mellor Goals: Hanbury 5|
Patrick Ah Van scored two tries on his return from a five-match ban to help Widnes to victory at Castleford.
Tries from Macgraff Leuluai, Ah Van and Chris Bridge gave Widnes a 14-6 half-time lead, with Cas loanee Paddy Flynn responding against his parent club.
Flynn scored another early in the second, but Ah Van, Lloyd White (2) and Joe Mellor tries made it 38-12.
Despite three Cas tries in four minutes - Larne Patrick, Luke Gale and Flynn's hat-trick score - Widnes held on.
The Vikings' victory had looked assured when Mellor took advantage of Castleford indecision on a short kick-off, running straight through to help them to a 26-point lead.
But, having lost nine of their previous 10 matches, their defence creaked as they let Patrick, who has just signed a three-year deal to move from Huddersfield after his loan spell, in for a try.
Gale and Flynn - on loan at Castleford from the Vikings until the end of the season - made it a nervy finish, but the Tigers suffered their fourth consecutive home league defeat.
Widnes moved above Wakefield into seventh, while Castleford remain in sixth, one point above the Vikings.
Castleford: Solomona, Monaghan, Crooks, Webster, Flynn, McShane, Gale, Jewitt, Milner, Patrick, Moors, McMeeken, Massey.
Replacements: Millington, Springer, Tickle, Cook.
Widnes: Hanbury, Thompson, Runciman, Bridge, Ah Van, Mellor,Brown, Cahill, White, Buchanan, Whitley, Dean, Leuluai.
Replacements: J. Chapelhow, Manuokafoa, Walker, Heremaia.
Referee: J Smith