Yes it's against code. The insulation is not rated for inwall use. The voltage used in the application does not change the cable's designated usage.
All codes are subject to the disgression of the inspector on site. I've never seen an inspector, (I've dealt with countless), pass an installation that used improper material for the application.
....Light travels faster than sound. That's why some people appear bright until you hear them speak.