GHSA-cwmp-x65r-27fv

Suggest an improvement
Source
https://github.com/advisories/GHSA-cwmp-x65r-27fv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-cwmp-x65r-27fv/GHSA-cwmp-x65r-27fv.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-cwmp-x65r-27fv
Aliases
Downstream
CGA (9)
Published
2026-12-02T00:28:21Z
Modified
2026-12-02T00:45:07Z
Severity
  • 3.7 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
Addressable URI#origin= takes the host from the userinfo
Details

Impact

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.

Affected Versions

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.

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.

Credits

Reported by Praneeth (@praneeth-bala), UCSB SecLab.

Database specific
{
    "cwe_ids":  [
        "CWE-436"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-12-02T00:28:21Z",
    "nvd_published_at":  null,
    "severity":  "LOW"
}
References

Affected packages

RubyGems / addressable

Package

Name
addressable
Purl
pkg:gem/addressable

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.4.0
Fixed
2.10.0

Affected versions

2.*
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.2
2.8.3
2.8.4
2.8.5
2.8.6
2.8.7
2.8.8
2.8.9
2.8.10
2.9.0
2.9.1
2.9.2

Database specific

last_known_affected_version_range
"<= 2.9.2"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-cwmp-x65r-27fv/GHSA-cwmp-x65r-27fv.json"