Medium severity · published Mar 4, 2025
CVE-2025-27221
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…
5.3
CVSS
0.5%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
Low
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 43% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
UR
Uri · Ruby-lang
before 0.11.3; 0.12.0 before 0.12.4; 0.13.0 before 0.13.2; 1.0.0 before 1.0.3 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-27221
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-27221
Third Party Advisory
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml
Permissions Required
https://hackerone.com/reports/2957667
lists.debian.org
https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html
lists.debian.org
https://lists.debian.org/debian-lts-announce/2025/05/msg00015.html
More from Uri
7.5
CVE-2025-61594
URI Credential Leakage Bypass over CVE-2025-27221
5.3
CVE-2023-36617
A ReDoS issue was discovered in the URI component before 0.12.2 for Ruby
5.3
CVE-2023-28755
A ReDoS issue was discovered in the URI component through 0.12.0 in Ruby through 3.2.1
