RubyGems
CVE-2026-141532
Addressable URI#origin= takes the host from the userinfo
- Severity
- Low 3.7
- Published
- 2 Dec 2026
- Last changed
- 2 Dec 2026
- Added to UpHeron
- 2 Dec 2026
- Fixed in
- 2.10.0
- Weakness
- CWE-436
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N- Also known as
- GHSA-cwmp-x65r-27fv
- Sources
- OSV.dev and GitHub
Description
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.
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.
Workarounds
- 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.
- Reject origins that contain an @ character.
Affected software
| Software | Affected versions |
|---|---|
addressableRubyGems · osv:RubyGems:addressable |
|
About addressable
- Total downloads (RubyGems)
- 1,323,514,580RubyGems, 1 Dec 2026
Vulnerabilities in addressable
- In our list
- 20
- Published in the last 12 months
- 20
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-141536Addressable URI#request_uri returns control characters unencoded with possible HTTP request splittingLow 3.7 1 Dec 2026
- CVE-2026-141535Addressable URI#hostname strips brackets from hosts that aren't IP literalsLow 3.7 1 Dec 2026
- CVE-2026-141537Addressable URI normalization takes quadratic time on long runs of combining marksLow 3.7 1 Dec 2026
- CVE-2026-141538Addressable URI userinfo setters store delimiters raw, so the serialized URI names a different hostMedium 4.8 1 Dec 2026
- CVE-2026-141539Addressable native IDNA backend truncates a host at a pct-encoded NUL when normalizingMedium 4.8 1 Dec 2026
- CVE-2026-141531Addressable display_uri shows a deceptive label boundary for a host label that decodes to U+3002Low 3.1 1 Dec 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-141532
- GitHub Advisory Database https://github.com/advisories/GHSA-cwmp-x65r-27fv