The 21-year-old spent time on loan at Darlington earlier this season and has also had loan spells at Hartlepool United, Harrogate Town and Falkirk.
Nelson put pen to paper with Jim McIntyre's side ahead of Saturday's Scottish Cup fourth-round tie against Queen of the South at the Kilmac Stadium at Dens Park.