St Johnstone dropped back to the bottom of the Scottish Premiership after letting a lead slip in Paisley.
Confident forward Callum Hendry had kept his composure from the penalty spot in the 28th minute for a deserved advantage.
But St Mirren hit back with a penalty of their own later in the half through Connor Ronan before, not long after the break, Alex Greive guided the hosts in front.