Is a USB 3 Type A-to-A cable dangerous with USB 2 ports?

The devil is in the details. "Is a USB 3 Type A-to-A cable dangerous with USB 2 ports?" The emphasis needs to be on the specifying of a USB 3 cable.

A USB 3 compliant A-to-A cable will not be dangerous if used with USB 2 ports because a USB 3 compliant A-to-A cable will have only the ground contact of the USB 2 contacts connected. The D+/D- and +5v wires are not used in a USB 3 A-to-A cable and are specified to be unconnected to avoid damage to USB 2 ports.

I suspect that the A-to-A cable used for this hub is not a compliant cable because the hub will need power to operate. Without the data wires connected the hub will be unable to be used with any USB 2 devices. It's possible the hub gets power from someplace other than the USB cable to the computer but if there's no power brick required to make the hub work then it's cable to the computer must be providing power, and that would make it a noncompliant cable.

If USB 2 devices work with the hub then that's another clue it is not compliant with the USB spec. It's possible that the USB 2 data is somehow being sent over the USB 3 data lines but this is a function that is not defined in the USB spec, there would have to then be drivers installed for whatever logic is in the hub so the computer would know to look for USB 2 devices on the USB 3 data lines.

If a USB A-to-A cable does connect the +5v contacts on both ends of the cable then using it to connect two computers will hopefully just trip a self reset circuit breaker in the port on one or both computers. In some computers this can burn out a fuse or circuit board trace in the port, which would be permanent damage but not leave the port useless as devices that are powered by means other than the port should still work. Such devices that don't rely on USB power would be something like a printer. Another outcome could be the power supply protection trips and the computer shuts down.

A worst case would be something like the USB chip controlling the port being destroyed. With many computers today having a single chip for all USB ports this means the keyboard and mouse going dead. That would likely make the computer effectively dead and worthless.