CVE-2025-61594Ruby-lang Uri
Low 2.1
Follow: this CVE · Ruby-lang · Ruby-lang Uri We alert you by email or Slack (account required).
- Priority
- 13
- CVSS 4.0
- 2.1
- EPSS
- —
- Auth required
- Yes
- Published
- Dec 30, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
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
What happens
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.
What to do
- Apply the vendor's security update for Uri.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | uri |
< 0.12.5 |
0.12.5 |
gem "uri", ">= 0.12.5" |
| RubyGems | uri |
≥ 0.13.0 < 0.13.3 |
0.13.3 |
gem "uri", ">= 0.13.3" |
| RubyGems | uri |
≥ 1.0.0 < 1.0.4 |
1.0.4 |
gem "uri", ">= 1.0.4" |
Per OSV / GitHub Advisories (GHSA-j4pr-3wm6-xx2r). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | uri | < 0.12.5 |
| ruby-lang | uri | ≥ 0.13.0 < 0.13.3 |
| ruby-lang | uri | ≥ 1.0.0 < 1.0.4 |
Official advisories
- Security update for ruby3.4 · SUSE · openSUSE-SU-2026:21878-1 · Nov 23, 2026 High
- Security update for ruby3.4 · SUSE · SUSE-SU-2026:24933-1 · Sep 18, 2026 High
- Security update for ruby3.4 · SUSE · SUSE-SU-2026:3090-1 · Jul 17, 2026 Medium
- Red Hat Security Advisory: ruby security update · Red Hat · RHSA-2025:23141 · Jan 3, 2026 Medium
- Red Hat Security Advisory: ruby:3.3 security update · Red Hat · RHSA-2025:23062 · Jan 3, 2026 Medium
- Red Hat Security Advisory: ruby:3.3 security update · Red Hat · RHSA-2025:23063 · Jan 3, 2026 Medium
Also: SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.