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.
{
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27221.json",
"unresolved_ranges": [
{
"source": "AFFECTED_FIELD",
"extracted_events": [
{
"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": "CPE_FIELD",
"extracted_events": [
{
"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": "DESCRIPTION",
"extracted_events": [
{
"fixed": "1.0.3"
}
]
}
],
"cwe_ids": [
"CWE-212"
]
}{
"source": "CPE_FIELD",
"extracted_events": [
{
"introduced": "0"
},
{
"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"
}
],
"cpe": "cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:*"
}