{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-27221","id":"CVE-2025-27221","title":"URI allows for userinfo Leakage in URI#join, URI#merge, and URI#+","description":"In the URI gem before 1.0.3 for Ruby, the URI handling methods (URI.join, URI#merge, URI#+) have an inadvertent leakage of authentication credentials because userinfo is retained even after changing the host.","descriptionLong":"In the URI gem before 1.0.3 for Ruby, the URI handling methods (URI.join, URI#merge, URI#+) have an inadvertent leakage of authentication credentials because userinfo is retained even after changing the host.","published":"2025-03-03T00:00:00.000Z","updated":"2026-10-28T02:30:22.193814390Z","reserved":"2025-02-20T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":3.2,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","rating":"low","source":"mitre"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N","rating":"low","source":"GitHub"},{"version":"3.1","score":3.2,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","rating":"low","source":"mitre"},{"version":"3.1","score":3.2,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","rating":"low","source":"mitre.org"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":3.2,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","rating":"low","source":"OSV"},{"version":"3.1","score":3.2,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","rating":"low","source":"GitHub"}],"rating":"low","products":["ruby-lang URI"],"affectedProducts":[{"vendor":"ruby-lang","product":"URI","defaultStatus":"unaffected","versions":[{"lessThan":"0.11.3","status":"affected","version":"0","versionType":"custom"},{"lessThan":"0.12.4","status":"affected","version":"0.12.0","versionType":"custom"},{"lessThan":"0.13.2","status":"affected","version":"0.13.0","versionType":"custom"},{"lessThan":"1.0.3","status":"affected","version":"1.0.0","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"uri","purl":"pkg:gem/uri","ranges":["<0.11.3",">=0.12.0 <0.12.4",">=0.13.0 <0.13.2",">=1.0.0 <1.0.3"],"fixed":["0.11.3","0.12.4","0.13.2","1.0.3"],"advisory":"GHSA-22h5-pq3x-2gf2"}],"cwes":["CWE-212","CWE-200"],"aliases":["GHSA-22h5-pq3x-2gf2"],"references":[{"url":"https://hackerone.com/reports/2957667","tags":["Permissions Required","web"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml","tags":["Third Party Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00015.html","tags":["web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27221.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27221","tags":["advisory"]},{"url":"https://github.com/ruby/uri/pull/154","tags":["web"]},{"url":"https://github.com/ruby/uri/pull/155","tags":["web"]},{"url":"https://github.com/ruby/uri/pull/156","tags":["web"]},{"url":"https://github.com/ruby/uri/pull/157","tags":["web"]},{"url":"https://github.com/ruby/uri","tags":["package"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-27221","tags":["web"]},{"url":"https://www.ruby-lang.org/en/news/2025/02/26/security-advisories","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00511,"epssPercentile":0.44378,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-27221","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27221","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-27221","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-22h5-pq3x-2gf2","ok":true,"note":"GHSA-22h5-pq3x-2gf2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-27221","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}