Gravity impacts almost everything that carries energy, even a particle without any mass. This is why the gravitational energy of dark matter can change the path of light in space.