CWE
200 212
EPSS
0.017%
Advisory Published
Advisory Published
Updated

CVE-2025-27221: Infoleak

First published: Mon Mar 03 2025(Updated: )

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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
rubygems/uri>=1.0.0<1.0.3
1.0.3
rubygems/uri>=0.13.0<0.13.2
0.13.2
rubygems/uri>=0.12.0<0.12.4
0.12.4
rubygems/uri<0.11.3
0.11.3
Tal Url Ruby<0.11.3
Tal Url Ruby>=0.12.0<0.12.4
Tal Url Ruby>=0.13.0<0.13.2
Tal Url Ruby>=1.0.0<1.0.3
debian/ruby2.7<=2.7.4-1+deb11u1
2.7.4-1+deb11u5
debian/ruby3.1<=3.1.2-7+deb12u1
debian/ruby3.3
3.3.8-1
debian/rubygems<=3.2.5-2<=3.3.15-2
3.6.7-2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-27221?

    CVE-2025-27221 poses a risk of userinfo leakage, which can lead to unauthorized access to sensitive information.

  • How do I fix CVE-2025-27221?

    To remediate CVE-2025-27221, upgrade the uri gem to version 1.0.3, 0.13.2, 0.12.4, or 0.11.3 as applicable.

  • What is the impact of CVE-2025-27221 on my application?

    CVE-2025-27221 can lead to leaking sensitive user credentials, compromising user privacy and security.

  • Which versions of the uri gem are affected by CVE-2025-27221?

    CVE-2025-27221 affects versions of the uri gem prior to 1.0.3, 0.13.2, 0.12.4, and 0.11.3.

  • Is there a workaround for CVE-2025-27221 if I cannot upgrade?

    No specific workarounds are recommended for CVE-2025-27221; upgrading to the fixed versions is the only effective solution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203