Improper Removal of Sensitive Information Before Storage or Transfer Affecting uri package, versions <0.12.5>=0.13.0, <0.13.3>=1.0.0, <1.0.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-URI-13506785
  • published9 Oct 2025
  • disclosed7 Oct 2025
  • creditjunfuchong

Introduced: 7 Oct 2025

NewCVE-2025-61594  (opens in a new tab)
CWE-212  (opens in a new tab)

How to fix?

Upgrade uri to version 0.12.5, 0.13.3, 1.0.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Removal of Sensitive Information Before Storage or Transfer via the use of the + operator when combining URIs. An attacker can obtain sensitive user credentials by crafting a URI that, when merged with another, results in the unintended exposure of authentication information.

Note: This vulnerability is a bypass of the fix to CVE-2025-27221.

CVSS Base Scores

version 4.0
version 3.1