CVE-2025-27221
URI allows for userinfo Leakage in URI#join, URI#merge, and URI#+
3.2
LOW
CVSS 3.1
EPSS 0.47%
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.
- RubyGems/uri—upgrade to 0.11.3 or later
Is CVE-2025-27221 being exploited?
Low — EPSS is 0.5%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- 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 |