QR codes, or 2D barcodes, are not dangerous. Visiting random URLs is dangerous. And the linked article agrees with that statement. Basically clickbait title
What makes them dangerous is the fact that most users have no way to know what web site they will be visiting when they scan one.