Gravity is caused by energy of which mass is just one form.
And note this includes relativistic mass (which is just energy)!