Skip to main content
← All vulnerabilities
CVE-2025-27221GHSA-22H5-PQ3X-2GF2

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 cr

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.11.3, 0.12.4, 0.13.2, 1.0.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • ruby-lang URI

    fixed in 0.11.3; From 0.12.0 · fixed in 0.12.4; From 0.13.0 · fixed in 0.13.2; From 1.0.0 · fixed in 1.0.3

  • uriRubyGems

    fixed in 0.11.3

  • uriRubyGems

    From 0.12.0 · fixed in 0.12.4

  • uriRubyGems

    From 0.13.0 · fixed in 0.13.2

  • uriRubyGems

    From 1.0.0 · fixed in 1.0.3

References 2

hackerone.com

GitHub · rubysec/ruby-advisory-db