{"id":"GHSA-cwmp-x65r-27fv","summary":"Addressable URI#origin= takes the host from the userinfo","details":"### Impact\n\n`Addressable::URI#origin=` extracts the host from the assigned origin with a pattern that stops at the first `:`. When the assigned value contains userinfo with a colon, the host is taken from the userinfo instead of the authority. `Addressable::URI.parse` reads the same string correctly, so an application that validates with `parse` and assigns with `origin=` (or the reverse) checks one host and uses another. Applications that don't pass untrusted values to `origin=` are unaffected.\n\n`origin=` also truncated IPv6 hosts (`[::1]` became `[`) and dropped the port when a path followed. While this is not expected to have security impact, the same change fixes this bug as well.\n\n### Affected Versions\n\n`URI#origin=` was introduced in Addressable 2.4.0, and the vulnerability is present in all versions with this method up through 2.9.2. It is fixed in 2.10.0.\n\n### Workarounds\n\n- Don't pass untrusted values to `origin=`. Parse them with `Addressable::URI.parse` or `Addressable::URI.heuristic_parse` and assign `scheme`, `host` and `port` individually if needed.\n- Reject origins that contain an `@` character.\n\n### Credits\n\nReported by Praneeth (@praneeth-bala), UCSB SecLab.","aliases":["CVE-2026-141532"],"modified":"2026-12-02T00:46:17.047826690Z","published":"2026-12-02T00:28:21Z","database_specific":{"cwe_ids":["CWE-436"],"severity":"LOW","github_reviewed":true,"github_reviewed_at":"2026-12-02T00:28:21Z","nvd_published_at":null},"references":[{"type":"WEB","url":"https://github.com/sporkmonger/addressable/security/advisories/GHSA-cwmp-x65r-27fv"},{"type":"WEB","url":"https://github.com/sporkmonger/addressable/commit/56454dd45398d23402243e85ec860d8a6caedbd1"},{"type":"PACKAGE","url":"https://github.com/sporkmonger/addressable"},{"type":"WEB","url":"https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0"}],"affected":[{"package":{"name":"addressable","ecosystem":"RubyGems","purl":"pkg:gem/addressable"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.4.0"},{"fixed":"2.10.0"}]}],"versions":["2.4.0","2.5.0","2.5.1","2.5.2","2.6.0","2.7.0","2.8.0","2.8.1","2.8.10","2.8.2","2.8.3","2.8.4","2.8.5","2.8.6","2.8.7","2.8.8","2.8.9","2.9.0","2.9.1","2.9.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-cwmp-x65r-27fv/GHSA-cwmp-x65r-27fv.json","last_known_affected_version_range":"\u003c= 2.9.2"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"}]}