Vulnerability GHSA-cwmp-x65r-27fv

Low Risk
LOW RISK
CVSS Score: 3.7
Score Range: < 4.0
Low severity vulnerabilities (CVSS < 4.0). Hygiene issues that can accumulate but pose lower immediate risk.
10 hours ago
December 02, 2026 at 12:28 AM UTC
Addressable URI#origin= takes the host from the userinfo
2.4.0 - 2.9.2
2.4.0 - 2.9.2

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.

Impacted packages

Timeline

Published
10 hours ago
December 02, 2026 at 12:28 AM UTC
Fixed (2.10.0)
9 days ago
November 23, 2026 at 03:15 AM UTC
Last Modified
10 hours ago
December 02, 2026 at 12:46 AM UTC