A vulnerability in Addressable::URI#origin= method allows incorrect extraction of the host from a URI when userinfo contains a colon, causing the host to be taken from userinfo instead of the authority. This can lead to mismatches between validation and usage of the host in applications that assign origins using this method. The issue affects versions from 2.4.0 through 2.9.2 and is fixed in 2.10.0. Additional bugs involving IPv6 host truncation and port dropping are also fixed by the same update. Applications that do not assign untrusted values to origin= are not affected.