Space is not cold.
Temperature is a property of matter. In space there is no¹ matter, so no temperature.
__________
¹ There is matter in space, but as it is a ultra-high vacuum, the density is so low that you can completely ignore it in this context.