It is not. There is no such thing as "pure energy".
Gravitational lensing works by light signals taking what amounts to the straightest possible path in a curved space-time. This works exactly the same for massive test particles except that their straight paths have slightly different properties.
Also note that mass is not what gravity couples to in general relativity. In GR, gravity couples to energy, momentum, and stress. Only in the non-relativistic limit where the large majority of all energy is due to an object's mass is the mass contribution to the energy the dominant source and the other sources can be neglected.