CVE-2025-61594
LOW 2.1CVSS 4.0URI Credential Leakage Bypass over CVE-2025-27221
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.
- Published
- 30 Dec 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-200CWE-212
- Also known as
- GHSA-j4pr-3wm6-xx2r
- Sources
- NVDJSONOSV GHSA-j4pr-3wm6-xx2rJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 2.1 | CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ruby-lang | uricpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:* |
< 0.12.5 | 0.12.5 |
| NVD | ruby-lang | uricpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:* |
>= 0.13.0, < 0.13.3 | 0.13.3 |
| NVD | ruby-lang | uricpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:* |
>= 1.0.0, < 1.0.4 | 1.0.4 |
| OSV | RubyGems | uri | < 0.12.5 | 0.12.5 |
| OSV | RubyGems | uri | >= 0.13.0, < 0.13.3 | 0.13.3 |
| OSV | RubyGems | uri | >= 1.0.0, < 1.0.4 | 1.0.4 |
References
- https://github.com/advisories/GHSA-22h5-pq3x-2gf2 · ADVISORY
- https://github.com/ruby/uri/security/advisories/GHSA-j4pr-3wm6-xx2r · WEB
- https://hackerone.com/reports/2957667 · WEB
- https://www.ruby-lang.org/en/news/2025/02/26/security-advisories · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-61594 · ADVISORY
- https://github.com/ruby/uri/commit/20157e3e29b125ff41f1d9662e2e3b1d066f5902 · WEB
- https://github.com/ruby/uri/commit/7e521b2da0833d964aab43019e735aea674e1c2c · WEB
- https://github.com/ruby/uri/commit/d3116ca66a3b1c97dc7577f9d2d6e353f391cd6a · WEB
- https://github.com/ruby/uri · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-61594.yml · WEB
- https://www.ruby-lang.org/en/news/2025/10/07/uri-cve-2025-61594 · WEB
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 30 Dec 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 30 Dec 2025)