{"id":"CVE-2025-27221","state":"PUBLISHED","title":"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 e","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.","publishedAt":"2025-03-03T00:00:00.000Z","updatedAt":"2025-11-03T21:13:26.685Z","severity":{"score":3.2,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N","source":"mitre"},"assigner":"mitre","products":["ruby-lang URI"],"affected":[{"vendor":"ruby-lang","product":"URI","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.11.3","versionType":"custom"},{"version":"0.12.0","status":"affected","lessThan":"0.12.4","versionType":"custom"},{"version":"0.13.0","status":"affected","lessThan":"0.13.2","versionType":"custom"},{"version":"1.0.0","status":"affected","lessThan":"1.0.3","versionType":"custom"}]}],"references":["https://hackerone.com/reports/2957667","https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml","https://lists.debian.org/debian-lts-announce/2025/05/msg00015.html","https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html"],"weaknesses":["CWE-212"],"ingestedAt":"2026-10-29T20:08:47.682Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/27xxx/CVE-2025-27221.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-27221","state":"PUBLISHED","datePublished":"2025-03-03T00:00:00.000Z","dateUpdated":"2025-11-03T21:13:26.685Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2025-02-20T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"ruby-lang","product":"URI","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.11.3","versionType":"custom"},{"version":"0.12.0","status":"affected","lessThan":"0.12.4","versionType":"custom"},{"version":"0.13.0","status":"affected","lessThan":"0.13.2","versionType":"custom"},{"version":"1.0.0","status":"affected","lessThan":"1.0.3","versionType":"custom"}]}],"references":[{"url":"https://hackerone.com/reports/2957667"},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml"}],"metrics":[{"cvssV3_1":{"version":"3.1","baseScore":3.2,"baseSeverity":"LOW","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-212","description":"CWE-212 Improper Removal of Sensitive Information Before Storage or Transfer","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2025-03-03T23:58:48.831Z"},"x_generator":{"engine":"enrichogram 0.0.1"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:*:*:*","versionEndExcluding":"0.11.3"},{"vulnerable":true,"criteria":"cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:*:*:*","versionStartIncluding":"0.12.0","versionEndExcluding":"0.12.4"},{"vulnerable":true,"criteria":"cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:*:*:*","versionStartIncluding":"0.13.0","versionEndExcluding":"0.13.2"},{"vulnerable":true,"criteria":"cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:*:*:*","versionStartIncluding":"1.0.0","versionEndExcluding":"1.0.3"}]}]}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-03-04T16:38:46.135358Z","id":"CVE-2025-27221","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-04T16:39:00.368Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00015.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T21:13:26.685Z"}}]}}}