You can melt rocks with any wavelength, it really depends on the power, cataracts included (assuming non ionizing wavelengths).
I work for hours in my VR headset, with eye tracking enabled...I should probably check up on what that power is.
edit: My point seems to have been missed. IR in the eyes will cause cataracts, but it requires extreme power. It's the heating from the extreme power causing the cataracts, not the wavelength of the photons. The wavelength of the photon just helps that power get absorbed in a way that it's not noticed by things like the retina. IR lasers are especially dangerous because you won't look away/blink, or know besides feeling the heat.