CVE-2025-27221
URI allows for userinfo Leakage in URI#join, URI#merge, and URI#+
3.2
LOW
CVSS 3.1
EPSS 0.16%
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.
How to fix CVE-2025-27221
To remediate CVE-2025-27221, upgrade the affected package to a fixed version below.
- Debian/ruby2.7—upgrade to 2.7.4-1+deb11u5 or later
- —no fix listed
- —upgrade to 3.3.7-2 or later
- —upgrade to 3.2.5-2+deb11u1 or later
- —upgrade to 0.11.3 or later
Is CVE-2025-27221 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (5)
- from 0, < 2.7.4-1+deb11u5
- from 0
- from 0, < 3.3.7-2
- from 0, < 3.2.5-2+deb11u1
- from 0, < 0.11.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | LOW3.2 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N |