CVE-2025-27221

uri: userinfo leakage in URI#join, URI#merge and URI#+

Published Mar 3, 2025 CVSS 3.1 · 3.2 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4082-1 ruby2.7 security update
Debian DLA Debian DLA DLA-4163-1 rubygems security update
EUVD EUVD EUVD-2025-5508 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.
Github GHSA Github GHSA GHSA-22h5-pq3x-2gf2 URI allows for userinfo Leakage in URI#join, URI#merge, and URI#+
Ubuntu USN Ubuntu USN USN-7418-1 Ruby vulnerabilities
Ubuntu USN Ubuntu USN USN-7442-1 Ruby vulnerabilities
History
Type Values Removed Values Added
First Time appeared Ruby-lang
Ruby-lang uri
CPEs cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:*
Vendors & Products Ruby-lang
Ruby-lang uri
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10.0
Type Values Removed Values Added
CPEs cpe:/a:redhat:enterprise_linux:9
Type Values Removed Values Added
First Time appeared Redhat
Redhat enterprise Linux
CPEs cpe:/a:redhat:enterprise_linux:8
Vendors & Products Redhat
Redhat enterprise Linux
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title uri: userinfo leakage in URI#join, URI#merge and URI#+
References
Metrics threat_severity

None

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-212
Metrics cvssV3_1

{'score': 3.2, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N'}

Type Values Removed Values Added
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.
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 3, 2025, 9:13 PM
Reserved
Feb 20, 2025, 12:00 AM
Status
Modified
Published
Mar 4, 2025, 12:15 AM
Modified
Jun 17, 2026, 9:03 AM
Severity
Low
Public date
Mar 3, 2025, 12:00 AM