Light does indeed bend around massive objects, a phenomenon known as gravitational lensing. According to Einstein's general theory of relativity, gravity is not simply a force exerted by massive objects but rather the curvature of spacetime caused by the presence of mass and energy. This curvature affects the path of light rays passing near massive objects.
When light passes close to a massive object, such as a star or a black hole, the gravitational field of that object warps the surrounding spacetime. As a result, the path of the light is curved as it travels through this curved spacetime. This bending of light is similar to how a lens in optics refracts light, hence the term "gravitational lensing."
The amount of bending depends on the mass and proximity of the object causing the gravitational field. If the object is sufficiently massive and close to the path of the light, the bending can be significant. In some cases, this bending can lead to the formation of multiple images or even a complete ring of light around the massive object.
One famous example of gravitational lensing is the observation of light bending around massive galaxy clusters. The light from distant galaxies behind the cluster gets deflected by the cluster's gravitational field, resulting in distorted and magnified images of those galaxies.
So, in summary, light does bend around massive objects due to the curvature of spacetime caused by the presence of mass and energy.