CVE-2025-27221
uri: userinfo leakage in URI#join, URI#merge and URI#+
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · March 3, 2025
Updated · June 28, 2026
Description
A flaw was found in the URI ruby gem package, where userinfo leakage can occur in the uri gem. The methods URI#join, URI#merge, and URI#+ retained userinfo, such as user:password, even after the host is replaced. When generating a URL to a malicious host from a URL containing secret userinfo using these methods, and having someone access that URL, an unintended userinfo leak can occur.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 3.2CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
CWE-212 · Improper Removal of Sensitive Information Before Storage or Transfer