Ian Bermingham got St Pat's back to winning ways with a delightfully-taken first-half winner at Ferrycarrig Park.
Though they dominated for good spells, St Pat's had to endure a nervous finish as they held on for victory to end a run of four straight league defeats.
With Wexford having played at Finn Harps last Friday night, it was no surprise that St Pat's - playing their first game in 11 days - looked much fresher and they duly dominated the first half.
After a sluggish opening, Graham Kelly brought the game to life in the gloomy drizzle on four minutes, his shot from distance deflecting off Gary Delaney for a corner.
Kelly then forced the first save of the game when his looping header from Ger O'Brien's cross was tipped over by Graham Doyle.
Five minutes later, Kelly started a move deep in his own half which involved also O'Brien and Conan Byrne, who crossed the ball for Mark Timlin to bring a second decent save from Doyle.
St Pat's remained well in control and they punished some sloppy Youths play to take a deserved lead on 27 minutes.
The home side gave the ball away cheaply in the middle of the park and Bermingham latched on to it to surge forward and work a one-two with Christy Fagan before showing the composure of a striker as he calmly side-footed his shot into the corner of the net.
The Youths goalkeeper and skipper remained busy before the interval, saving a low drive from Fagan before getting down to clasp Conan Byrne's diving header.
Doyle then produced the save of the game on 75 minutes, diving full stretch to his left to push Billy Dennehy's strike from the edge of the area out for a corner.
Youths came alive as they chased the game late on with Danny Furlong not far over the top with a spectacular overhead kick from substitute Conor O'Keeffe's right-flank delivery.
Darren Dennehy then cleared Furlong's shot off the line before, right on 90 minutes, Andy Mulligan was just wide with a header from Furlong's cross as panic gripped the Saints' defence.
Wexford Youths - Doyle; McCabe, G Delaney, Last, Grace; Friel (Keenan, 61), Bonner, Kenny (Dempsey, 83), Dunne (O'Keeffe, 77); Mulligan; Furlong.
St Patrick's Athletic - Clarke; O'Brien, Hoare, D Dennehy, Bermingham; Treacy, Kelly (Verdon, 87); Byrne, Timlin (Kisella, 83), B Dennehy; Fagan.
Ref - G Kelly (Cork)