URI gem < 0.11.3 - Authentication Credential Leakage via URI Handling Methods
In the URI gem before 1.0.3 for Ruby, the URI handling methods (URI.join, URI#merge, URI#+) have an inadvertent leakage of authentication credentials because userinfo is retained even after changing the host.