Addressable::URI#origin= in Addressable versions 2.4.0 through 2.9.2 incorrectly extracts the host from the userinfo portion of a URI when the assigned origin contains userinfo with a colon, leading to a mismatch between validation and usage of the host. This can cause applications that validate with Addressable::URI.parse but assign with origin= (or vice versa) to check one host but use another. The issue also caused truncation of IPv6 hosts and dropped ports when a path followed, though these are not expected to have security impact. The vulnerability is fixed in version 2.10.0. Applications that do not pass untrusted values to origin= are not affected.