Security mailing lists by PureSourceCode

CVE-2025-27221

MEDIUM 5.3CVSS 3.1

URI allows for userinfo Leakage in URI#join, URI#merge, and URI#+

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.

Published
4 Mar 2025
Last modified
10 Sep 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-200CWE-212
Also known as
GHSA-22h5-pq3x-2gf2
Sources
NVDJSONOSV GHSA-22h5-pq3x-2gf2JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD cve@mitre.org (Secondary) CVSS 3.1 LOW 3.2 CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
OSV GitHub CVSS 3.1 LOW 3.2 CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD ruby-lang uri
cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:*
< 0.11.3 0.11.3
NVD ruby-lang uri
cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:*
>= 0.12.0, < 0.12.4 0.12.4
NVD ruby-lang uri
cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:*
>= 0.13.0, < 0.13.2 0.13.2
NVD ruby-lang uri
cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:*
>= 1.0.0, < 1.0.3 1.0.3
OSV RubyGems uri < 0.11.3 0.11.3
OSV RubyGems uri >= 0.12.0, < 0.12.4 0.12.4
OSV RubyGems uri >= 0.13.0, < 0.13.2 0.13.2
OSV RubyGems uri >= 1.0.0, < 1.0.3 1.0.3

References

History

  • 25 Nov 2026 20:57 UTC · NVD: first stored (published 4 Mar 2025)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Mar 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.