CVE-2025-27221: In the URI gem before 1.0.3 for Ruby, the URI handling methods (URI.join, URI#merge, URI#+) have an inadverten
CVE-2025-27221 is a low-severity flaw (CVSS 3.2) affecting uri. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 3.2 (Low) |
| Attack vector | Local |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.5% (top 56%) |
| CISA exploited list | No |
| Weakness | CWE-212 |
| Published | 2025-03-04 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-27221?
uri: upgrade to 0.11.3, 0.12.4, 0.13.2, 1.0.3. Exact commands for each OS are on this page.
Is CVE-2025-27221 being exploited?
CVE-2025-27221 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-27221 affect?
CVE-2025-27221 affects uri. Severity is low (CVSS 3.2). 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 urgent is CVE-2025-27221?
Priority 22/100. No elevated risk signals yet.
Software pages
Related CVEs
- CVE-2025-61594 HIGH 7.5 UPGRADE URI is a module providing classes to handle Uniform Resource Identifiers