CVE-2025-61594: URI Credential Leakage Bypass over CVE-2025-27221

Published Dec 30, 2025
·
Updated

Impact

In affected URI version, a bypass exists for the fix to CVE-2025-27221 that can expose user credentials.

When using the + operator to combine URIs, sensitive information like passwords from the original URI can be leaked, violating RFC3986 and making applications vulnerable to credential exposure.

The vulnerability affects the uri gem bundled with the following Ruby series:

0.12.4 and earlier (bundled in Ruby 3.2 series) 0.13.2 and earlier (bundled in Ruby 3.3 series) 1.0.3 and earlier (bundled in Ruby 3.4 series)

Patches

Upgrade to 0.12.5, 0.13.3 or 1.0.4

References

https://www.ruby-lang.org/en/news/2025/02/26/security-advisories/ https://hackerone.com/reports/2957667

Other sources

URI Credential Leakage Bypass over CVE-2025-27221

Microsoft

URI is a module providing classes to handle Uniform Resource Identifiers. In versions 0.12.4 and earlier (bundled in Ruby 3.2 series) 0.13.2 and earlier (bundled in Ruby 3.3 series), 1.0.3 and earlier (bundled in Ruby 3.4 series), when using the + operator to combine URIs, sensitive information like passwords from the original URI can be leaked, violating RFC3986 and making applications vulnerable to credential exposure. This is a a bypass for the fix to CVE-2025-27221 that can expose user credentials. This issue has been fixed in versions 0.12.5, 0.13.3 and 1.0.4.

MITRE

URI is a module providing classes to handle Uniform Resource Identifiers. In versions prior to 0.12.5, 0.13.3, and 1.0.4, a bypass exists for the fix to CVE-2025-27221 that can expose user credentials. When using the + operator to combine URIs, sensitive information like passwords from the original URI can be leaked, violating RFC3986 and making applications vulnerable to credential exposure. Versions 0.12.5, 0.13.3, and 1.0.4 fix the issue.

NVD

Affected Software

12 affected componentsFixes available
rubygems/uri>=1.0.0<1.0.4
1.0.4
rubygems/uri>=0.13.0<0.13.3
0.13.3
rubygems/uri<0.12.5
0.12.5
Microsoft cbl2 ruby 3.1.7-3
Microsoft azl3 ruby 3.3.5-6
Microsoft cbl2 ruby 3.1.7-4
Microsoft cbl2 ruby 3.1.7-3
Microsoft azl3 ruby 3.3.5-7
ruby-lang Uri Ruby<0.12.5
ruby-lang Uri Ruby>=0.13.0<0.13.3
ruby-lang Uri Ruby>=1.0.0<1.0.4
IBM Aspera Shares<=1.9.9 - 1.11.0

Event History

Dec 30, 2025
CVE Published
via MITRE·09:03 PM
Data Sourced
via MITRE·09:03 PM
DescriptionWeakness
Advisory Published
via GitHub·09:07 PM
Data Sourced
via GitHub·09:07 PM
DescriptionWeaknessAffected Software
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeaknessAffected Software
Jan 3, 2026
Data Sourced
via Microsoft·01:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:02 AM
Affected Software
Updated
via Microsoft·09:02 AM
DescriptionSeverity
Updated
via Microsoft·09:02 AM
Affected Software
Mar 27, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-61594?

CVE-2025-61594 is considered a high severity vulnerability due to the risk of exposing user credentials.

2

How do I fix CVE-2025-61594?

To fix CVE-2025-61594, update the uri package to version 1.0.4, 0.13.3, or 0.12.5.

3

What systems are affected by CVE-2025-61594?

CVE-2025-61594 affects versions of the uri package between 0.12.0 and 1.0.4.

4

What type of vulnerability is CVE-2025-61594?

CVE-2025-61594 is a credential exposure vulnerability caused by improper URI handling.

5

What potential impact does CVE-2025-61594 have on applications?

CVE-2025-61594 may lead to the unintentional leakage of sensitive information, such as user passwords, in applications.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203