Kylian Kouassi had put Colchester in front.
Moylan – who joined Cardiff in midweek from Lincoln – curled in the winner in the 77th minute.
More from us
Did you know with a Plus subscription to Shropshire Star you get full access to our award winning journalism for the news that matters to you and more.