It is actually less dangerous than other fuels, for the simple reason that it is extremely light and buoyant. A gasoline fire is bad, because the gasoline stays where it is until it fully burns. A hydrogen fire is less bad, because it will tend to move upwards.
If you assume a realistic fuel capacity for a hydrogen vehicle, the hydrogen tank will be both much larger than a gas tank and the hydrogen will be under extreme pressure. A tank like that in your car would be extremely dangerous even if it were filled only with inert gas.