Improper Removal of Sensitive Information Before Storage or Transfer Affecting uri package, versions <0.11.3>=0.12.0, <0.12.4>=0.13.0, <0.13.2>=1.0.0, <1.0.3


Severity

Recommended
0.0
low
0
10

CVSS assessment made 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-9056162
  • published4 Mar 2025
  • disclosed3 Mar 2025
  • creditTsubasa Irisawa

Introduced: 3 Mar 2025

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

How to fix?

Upgrade uri to version 0.11.3, 0.12.4, 0.13.2, 1.0.3 or higher.

Overview

Affected versions of this package are vulnerable to Improper Removal of Sensitive Information Before Storage or Transfer via the URI#join, URI#merge, and URI#+ methods, which may expose stored credentials from userinfo, after the host is replaced. An attacker can cause a URL to a malicious host to be generated containing fields such as user:password can expose that information when the victim accesses the URL.

CVSS Base Scores

version 4.0
version 3.1