Low
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-27221
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 18:26 UTC · Revision 1
Source evidence
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.
osv:CVE-2025-27221
Complete source record
{
"id": "d78c0a6633d0b647f14d8407caf7cd9520b8d07ed44e1380b88bd33007cce95d",
"url": "https://osv.dev/vulnerability/CVE-2025-27221",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2025-27221",
"summary": "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.",
"evidence": "osv:CVE-2025-27221",
"products": [],
"severity": "low",
"structured": {
"id": "CVE-2025-27221",
"aliases": [
"CVE-2025-27221",
"GHSA-22h5-pq3x-2gf2"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/ruby/uri",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "c13dfc2164bc4af31085e709ab348fdbd527013f"
},
{
"introduced": "72f22716f86fe6bccf52c167cbb30e1a6e70aaca"
},
{
"fixed": "b079fb331eba7254d13e5e3c7e1853f9b28fc63a"
},
{
"introduced": "b50d37f7a193991c56bda7f94e8dd6fec0bb3f7f"
},
{
"fixed": "cef02d63f5e0d7685631e0ed9324b2801784c871"
},
{
"introduced": "af8d9d6bb1a90da71f64a9c3f8eddd3626d44efb"
},
{
"fixed": "3213f4a0f80f10c8f36993dbb9eabe7f2c1b50fd"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.11.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:*",
"range": [
{
"introduced": "0.12.0"
},
{
"fixed": "0.12.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:*",
"range": [
{
"introduced": "0.13.0"
},
{
"fixed": "0.13.2"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:*",
"range": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.0.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v0.13.1",
"v0.12.3",
"v0.11.2",
"v1.0.2",
"v1.0.1",
"v1.0.0",
"v0.13.0",
"v0.12.2",
"v0.11.1",
"v0.12.1",
"v0.11.0",
"v0.10.1",
"v0.10.0",
"v0.12.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-27221.json"
}
}
],
"modified": "2026-10-28T02:30:22.193814390Z",
"provider": "osv",
"references": [
"https://hackerone.com/reports/2957667",
"https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html",
"https://lists.debian.org/debian-lts-announce/2025/05/msg00015.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27221.json",
"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml",
"https://nvd.nist.gov/vuln/detail/CVE-2025-27221"
],
"provider_metadata": {
"cwe_ids": [
"CWE-212"
],
"cna_assigner": "mitre",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "0.11.3"
},
{
"introduced": "0.12.0"
},
{
"fixed": "0.12.4"
},
{
"introduced": "0.13.0"
},
{
"fixed": "0.13.2"
},
{
"introduced": "1.0.0"
},
{
"fixed": "1.0.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27221.json"
}
},
"related_cves": [
{
"value": "CVE-2025-27221",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 488389,
"published_at": "2025-03-03T00:00:00+00:00"
}