By themselves, QR codes are not risky or dangerous. But since they store data, there is always a possibility that they can be misused. Hence the risk!