No light does not need medium to travel.
Its an electromagnetic(EM) wave.
All EM waves travel independent of medium.
In contrast mechanical waves need medium,sound waves,shock waves are mechanical and they need medium to transfer energy or travel.
Why light can travel with or without a medium?
We know that light doesn’t need a medium through which to travel because the speed of light is experimentally constant: independent of the movement of the source or detector or the direction in which it travels. Light contrasts with sound, which travels through the air (or some other material medium).
Which waves do not need a medium to travel through?
Electromagnetic waves differ from mechanical waves in that they do not require a medium to propagate. This means that electromagnetic waves can travel not only through air and solid materials, but also through the vacuum of space.
Why do electromagnetic waves not require a medium for travel?
As I understand it, electromagnetic waves have two components which are the result of each other, i.e., when a moving electric charge creates a changing magnetic field at point X then a changing electric field is created at point Y and this repeating process is what creates EM waves, so therefore, it requires no medium