Let us not forget that heat travels in three ways; conduction, convection and radiation. Conduction requires objects to be solid or liquid and in contact with the heat source, convection requires a heated gas or liquid to move to propagate the heat, and radiation does not require a solid, liquid or gas, and is thermal energy transmitted in the form of waves (esp. electromagnetic waves) or moving subatomic particles.
So to the original question, a pure vacuum does not have a temperature, as there will be no solid, liquid or gas to hold the heat. If you plonk a thermometer (or other measuring device) then there is no longer a vacuum. Further, if radiation falls on the thermometer and you detect the presence of heat by a rise in temerature then you are measuring the temperature of the thermometer, not that of the vacuum.