Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. uri
  4. ›
  5. CVE-2025-27221

CVE-2025-27221: URI allows for userinfo Leakage in URI#join, URI#merge, and URI#+

March 3, 2025 (updated March 4, 2025)

There is a possibility for userinfo leakage by in the uri gem. This vulnerability has been assigned the CVE identifier CVE-2025-27221. We recommend upgrading the uri gem.

References

  • github.com/advisories/GHSA-22h5-pq3x-2gf2
  • github.com/ruby/uri
  • github.com/ruby/uri/pull/154
  • github.com/ruby/uri/pull/155
  • github.com/ruby/uri/pull/156
  • github.com/ruby/uri/pull/157
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml
  • hackerone.com/reports/2957667
  • nvd.nist.gov/vuln/detail/CVE-2025-27221
  • www.cve.org/CVERecord?id=CVE-2025-27221
  • www.ruby-lang.org/en/news/2025/02/26/security-advisories

Code Behaviors & Features

Detect and mitigate CVE-2025-27221 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.11.3, all versions starting from 0.12.0 before 0.12.4, all versions starting from 0.13.0 before 0.13.2, all versions starting from 1.0.0 before 1.0.3

Fixed versions

  • 0.11.3
  • 0.12.4
  • 0.13.2
  • 1.0.3

Solution

Upgrade to versions 0.11.3, 0.12.4, 0.13.2, 1.0.3 or above.

Impact 3.2 LOW

CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer

Source file

gem/uri/CVE-2025-27221.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:40 +0000.