What’s Vulnerable › Vulnerabilities

CVE-2025-27221

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.

Affected products

How to fix

Upgrade to a fixed version: ruby-lang URI 0.11.3, 0.12.4, 0.13.2, 1.0.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-27221 or the next vulnerability affects your stack