CVE-2025-27221

LOW
Published Mar 4, 2025 Modified Nov 3, 2025 CWE-212

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.

CVSS v3.1 Score

3.2
LOW
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N

Weakness Type (CWE)

CWE-212 CWE-212

Affected Products

Vendor Product
ruby-lang uri
ruby-lang uri
ruby-lang uri
ruby-lang uri

References

Frequently Asked Questions

What is 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. It has a CVSS v3.1 base score of 3.2 (LOW).
How severe is CVE-2025-27221? +
CVE-2025-27221 has a CVSS v3.1 score of 3.2 out of 10, rated LOW. This is a low-severity vulnerability with limited impact.
What products are affected by CVE-2025-27221? +
CVE-2025-27221 affects products from ruby-lang, specifically: uri. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-27221? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-27221 — free, no signup required.

Start Free Scan