Hey Magnus,
Sorry for the delay answering you. First, thanks a lot for the feedback and the quality of your PR, it's really appreciated. We discussed the subject internally, but we are not going to follow you on your statements. Indeed, those IPs are standard and widely used / known. However allowing them may imply too much side effects for us.
Allowing 127.0.0.1 implies that the desire will always be to go to the loopback in implementation. The whole point is that you might be testing your application on localhost, but need a different IP in production in those specific places. For
0.0.0.0, it seems that it's not always used to declare "any IP address". For instance, in interface configuration, it may be used to remove a given address. It's usage has to be consequently well studied, and raising a (security) issue when used sounds not a bad idea.
So indeed, these both addresses are global, and usually well-known special values, but the risks their usage imply can still be problematic. From our point of view, raising an issue on them seems consequently legit. Of course, when raised, it's the responsibility of the dev team to flag the issue as "Won't Fix" or "False Positive", depending of the context.
Cheers,
Michael