user: Tries from Harvey Livett, Daryl Clark and Kurt Gidley gave Wire a slender 16-12 half-time lead.
Danny Brough then converted his own try, adding a penalty, as the Giants hit back to lead 20-16.
But two late Wire tries turned it round and, although Jermaine McGillvary scored in the corner, Brough could not add the extras from the touchline.
Having started the season with two wins from their first three games, the Giants have not won now in eight games since - and they drop to 11th, while last season's beaten finalists Warrington, who failed to win any of their first seven matches, rise two places to ninth.
Against his old club, Tony Smith's Warrington were ahead inside two minutes, in their first attack, when centre Livett scooped up a wayward Declan Patton pass and stepped inside the Giants cover for his first Super League try.
Fine handling between Brough and Jake Mamo allowed Darnell McIntosh to squeeze over in the corner to level at 4-4, but, having earlier been placed on report for a late challenge on Lee Gaskell, Warrington hooker Clark's try restored the hosts' lead, Patton converting.
Six minutes later the Giants were level again, with a try from Mamo after Kruise Leeming's fine midfield break - and Brough not only landed the conversion but also added a penalty to edge the visitors 12-10 in front.
Warrington finished the half the stronger when Gidley crashed over, Patton converting to extend their half-time lead but that was wiped out seven minutes after the restart when the artful Brough sneaked over from dummy half, to tie it up at 16-16.
Brough added the conversion to edge the Giants back in front with a penalty on the hour mark before two tries in three minutes from Rhys Evans and Toby King, who collected Patton's crossfield kick to score, made it 26-20.
But, in a thrilling climax, King lost possession on his own line and, from the last play of the game McGillvary went over in the corner, only for Brough to just fail from the touchline with his bid to claim a third Huddersfield draw in six matches.
Warrington Wolves coach Tony Smith:
"It was ugly but it was two points. It wasn't the prettiest of games by a long shot but we hung on.
"It's been a while I would suggest since we won both our games over Easter so, because of where we are placed in the table, it was probably important to pick up the two points.
"In terms of performance it was very much a second-game-over-Easter performance from both teams. The big men looked tired today and came up with some stuff they normally don't come up with."
Huddersfield Giants coach Rick Stone:
"It was a toss of the coin sort of kick from the touchline, probably on Danny's right side being a left-footer. He had one in the first half which he struck a fraction left and this one went a bit right - but there's no dramas.
"We are not getting a lot of luck or 50-50 decisions and it tends to happen when you are not winning games.
"You have to make your own luck and be energised and be in a position where hopefully we are going to get the rub of the green because in the last couple of weeks we've not had too much."
Warrington: Ratchford; Evans, T King, Livett, Lineham; Patton, Gidley; Hill, Clark, Sims, Jullien, Hughes, Cooper.
Replacements: Philbin, Dwyer, G King, Savelio.
Huddersfield: Mamo; McGillvary, S Wood, Murphy, McIntosh; Brough, Gaskell; Ikahihifo, Hinchcliffe, Wakeman, Mellor, Roberts, Clough.
Replacements: Rapira, Leeming, Mason, Dickinson.
Referee: Ben Thaler (RFL).

Sum: Warrington maintained their resurgence with a third straight win as they twice came from behind to beat Huddersfield.


Esperance came back from a 2-1 first leg loss to Tanzania's Azam to win 3-0 and progress 4-2 on aggregate.
It was goalless at half-time but in the second period the home side cut loose to end lowly Azam's hopes of an upset.
The winners of the last 16 ties will play the losers in the Champions League for a place in the Confederation Cup group phase.
Esperance are joined in the next stage by fellow Tunisians, Stade Gabesian.
Gabesian had a 3-0 win over Zambia's Zanaco while Sagrada Esperanca of Angola are through against V Club Mokanda of Congo.
Uganda's SC Villa managed a 1-0 at home to FUS Rabat of Morocco on Wednesday but the goal was nothing more than a consolation as it finished 7-1 on aggregate.
Umar Kasumba scored the only goal of the game from the penalty spot in the 56th minute.

Sum: Former African champions Esperance of Tunisia are through to the play-off round of the Confederation Cup.


Many ignored warnings they received, found the US National Institute of Standards and Technology (NIST).
Others were worn out by software updates and by the number of passwords they had to remember, NIST found.
This "risky behaviour" might make people more susceptible to attack, it warned.
"We weren't even looking for fatigue in our interviews, but we got this overwhelming feeling of weariness throughout all of the data," said computer scientist Mary Theofanos, one of the experts who co-ordinated the study.
Responses from subjects revealed that many felt "overwhelmed" by having to be alert for digital threats at all times, remembering to act safely online and by the different security and privacy policies on the sites they used.
Others were worn down by the number of passwords, Pins and other secure credentials they had to remember.
"Years ago, you had one password to keep up with at work," said Ms Theofanos. "Now people are being asked to remember 25 or 30."
Many were frustrated by the extra security steps they had to go through to get at "their stuff" in online bank accounts or on other websites.
"We haven't really thought about cybersecurity expanding and what it has done to people," she added.
The NIST study involved in-depth interviews with a broad cross-section of Americans aged 20-60, who lived in rural and urban areas and were in high and low-paying jobs.
Responses from interviewees revealed that many were fatalistic about what they could do to avoid being attacked and many were resigned to being caught out at some point, said Ms Theofanos.
Many questioned why they would be targeted by malicious hackers given that they did not work for a sensitive government department or for a finance company. Few said they could name a friend of relative that had been hit by a hack attack.
Others asked how they could possibly be expected to stay safe when massive corporations that spent huge sums on security were regularly caught out.
The NIST said it was planning a follow-up study with people who worked in the technology sector to gauge their feelings about security and to find out if they felt overwhelmed to the same degree.
The study said websites and online services needed to do a better job of co-ordinating how they approached security to lighten the load on users.
"If people can't use security, they are not going to, and then we and our nation won't be secure," said report co-author Brian Stanton.

Sum:

assistant: Relentless cybersecurity warnings have given people "security fatigue" that stops them keeping themselves safe, suggests a study.