CVE-2025-27221

published 3 Mar 2025 · updated 18 Feb 2026

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.

3.2LowCVSS 3.2EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 0.11.3, 0.12.4, 0.13.2 and 1 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
ruby-lang<0.11.3, >=0.12.0 <0.12.4, >=0.13.0 <0.13.2, >=1.0.0 <1.0.30.11.3, 0.12.4, 0.13.2, 1.0.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-27221 severity on Zeptric[![CVE-2025-27221](https://zeptric.io/badge/cve/CVE-2025-27221.svg)](https://zeptric.io/cve/CVE-2025-27221)