CVE-2025-27221 Details
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.
A vulnerability in the URI gem for Ruby, affecting versions prior to 1.0.3, has been identified. The issue arises in the URI handling methods URI.join, URI#merge, and URI#+, where authentication credentials are inadvertently leaked. This occurs because userinfo is retained even after the host is changed. When a URL containing sensitive userinfo is merged with a malicious host, and the resulting URL is accessed, the userinfo can be unintentionally exposed.
Users are advised to upgrade the URI gem to version 0.11.3, 0.12.4, 0.13.2, or 1.0.3 and later.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 4, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-212 | Improper Removal of Sensitive Information Before Storage or Transfer | [email protected] |
| CWE-212 | Improper Removal of Sensitive Information Before Storage or Transfer | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ruby-lang uri | < 0.11.3 >= 0.12.0, < 0.12.4 >= 0.13.0, < 0.13.2 >= 1.0.0, < 1.0.3 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Nov 3, 2025 | CVE Modified | CVE |
| Aug 1, 2025 | Reanalysis | [email protected] |
| Mar 5, 2025 | Initial Analysis | [email protected] |
| Mar 4, 2025 | New CVE Received | [email protected] |