CVE-2025-27221 is a medium-severity vulnerability affecting the URI gem in Ruby versions prior to 1.0.3. It involves an inadvertent leakage of authentication credentials (userinfo) when URI handling methods like URI.join, URI#merge, or URI#+ are used, as the userinfo is retained even after the host is changed. The vulnerability has a CVSS score of 5.3, indicating a network-based attack with low complexity and a potential impact of credential disclosure (C:L). There is currently no evidence of active exploitation, public exploit code (Metasploit, Nuclei, ExploitDB), or significant community discussion or media coverage surrounding this CVE.
| Vendor | Product | Version(s) | CPE |
|---|---|---|---|
< 0.11.3CPE matchmatch criteria | cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:* | ||
>= 0.12.0, < 0.12.4CPE matchmatch criteria | cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:* | ||
>= 0.13.0, < 0.13.2CPE matchmatch criteria | cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:* | ||
>= 1.0.0, < 1.0.3CPE matchmatch criteria | cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:* | ||
>= 0, < 0.11.3CPE match | cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:* |
CVSS version used by this source: 3.1
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.1 Bluesky, 0.0 Mastodon, and 0.4 GitHub mentions.
No media coverage found for this CVE.
The average CVE in this peer group has 0.0 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.
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.
Mar 11, 2025URI allows for userinfo Leakage in URI#join, URI#merge, and URI#+
Mar 3, 2025uri: userinfo leakage in URI#join, URI#merge and URI#+
Mar 3, 2025