Information disclosure in Ruby Uri
CVE-2025-61594
URI is a module providing classes to handle Uniform Resource Identifiers. In versions 0.12.4 and earlier (bundled in Ruby 3.2 series) 0.13.2 and earlier (bundled in Ruby 3.3 series), 1.0.3 and earlier (bundled in Ruby 3.4 series), when using the + operator to combine URIs, sensitive information like passwords from the original URI can be leaked, violating RFC3986 and making applications vulnerable to credential exposure. This is a a bypass for the fix to CVE-2025-27221 that can expose user credentials. This issue has been fixed in versions 0.12.5, 0.13.3 and 1.0.4.
Vulnerability class: Information Disclosure
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.006, 47.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Ruby Uri — versions < 0.12.5, >= 0.13.0, < 0.13.3, >= 1.0.0, < 1.0.4
- Ruby-Lang Uri
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (lifeparticle/Ruby-Cheatsheet, nerminitech/BrainBuster). These reference the CVE in a list, notes or a scanner and are not exploit code for it.