Cowdenbeath left Dens Park with all three points this afternoon despite having a penalty saved and being pegged back after taking the lead.
Kyle Letheren saved a Kane Hemmings spot kick in the first half but the Cowdenbeath striker made up for it in the second half.
He was the first to react in the area to poke home following a save from Letheren.
Jim McAlister struck Dundee level with a shot from the edge of the box but The Blue Brazil found a winner through substitute Jordan Morton.