Vulnerability in Ruby-Lang Uri

CVE-2025-27221

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 3.2 (Low). Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N.

EPSS exploit prediction

EPSS 0.005, 44.2th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

Weakness classification (CWE)

Public exploits and proof-of-concept code

Also mentioned in 2 other repositories (lifeparticle/Ruby-Cheatsheet, w4zu/Debian_security). These reference the CVE in a list, notes or a scanner and are not exploit code for it.

References