Stirling Albion kept up the pressure on Division Two leaders Morton with a nervy seventh win on the bounce thanks to Colin Cramb's winner.
David O'Brien's corner was headed against his own crossbar by Cowdenbeath's Danny Lennon early on.
Cowden's Liam Buchanan went close, while a string of saves by David Hay denied Stirling the lead.
But Cramb flicked in the winner from a header following a Chris Aitken free-kick after 63 minutes.
Stirling: Hogarth, Hay (Bingham 59), Forsyth, Nugent, Aitken, Graham, Wilson (Taggart 59), Devine, Cramb, Snodgrass, O'Brien.
Subs Not Used: Marek Tomana, Fraser, Christie.
Goal: Cramb 63.
Cowdenbeath: Hay, Baxter, Kenneth, Lennon, Hill, Armstrong, Docherty (Fotheringham 69), Fusco (Bryan 81), Buchanan, Patrick Scullion, Weir (Dalziel 74). Subs Not Used: McBride, Allison.
Booked: Patrick Scullion.