VDB

CVE-2025-27221

CVE-2025-27221 PUBLISHED CVSS 3.2 LOW

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

Reported by mitre · Published March 3, 2025

uri is fixed in 1.0.3, 0.13.2, 0.12.4 and 1 more (RubyGems)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
uriRubyGems1.0.3, 0.13.2, 0.12.4, 0.11.3
ruby3.2-rubygems-develAmazon Linux3.4.19-183.amzn2023.0.2
ruby3.2-faraday-1.10.3Chainguard1.10.3-r9
ruby3.2-rubygem-io-consoleAmazon Linux0.6.0-183.amzn2023.0.2
ruby3.4-uriChainguard1.0.3-r0
ruby3.2-rubygem-rakeAmazon Linux13.0.6-183.amzn2023.0.2
ruby3.2-rubygem-rssAmazon Linux0.3.1-183.amzn2023.0.2
ruby3.4-uriWolfi1.0.3-r0
ruby3.2-rubygem-irbAmazon Linux1.6.2-183.amzn2023.0.2
ruby3.2-rubygem-typeprofAmazon Linux0.21.3-183.amzn2023.0.2
ruby3.2-docAmazon Linux3.2.7-183.amzn2023.0.2
ruby3.3-rails-8.0Chainguard8.0.2-r1

27 more packages have a fixed version. See every fix in Lookup.

Risk scores

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

Affected products

VendorProductVersions
ruby-langURI0, 0.12.0, 0.13.0
amazon:2023ruby3.2-rubygems-devel0
chainguardruby3.2-faraday-1.10.30
amazon:2023ruby3.2-rubygem-io-console0
chainguardruby3.4-uri0
amazon:2023ruby3.2-rubygem-rake0
amazon:2023ruby3.2-rubygem-rss0
wolfiruby3.4-uri0
amazon:2023ruby3.2-rubygem-irb0
amazon:2023ruby3.2-rubygem-typeprof0
amazon:2023ruby3.2-doc0
chainguardruby3.3-rails-8.00
amazon:2023ruby3.2-bundled-gems0
amazon:2023ruby3.2-rubygem-bundler0
wolfiruby3.2-uri0
wolfiruby-3.40
amazon:2023ruby3.2-rubygem-minitest0
amazon:2023ruby3.2-rubygem-bigdecimal0
chainguardruby-3.10
amazon:2023ruby3.2-devel0

…and 35 more

Timeline

  • Feb 20, 2025 CVE ID Reserved
  • Feb 25, 2025 CVE Published
  • Mar 4, 2025 EPSS Score (30 in total, the first dated here)
  • Nov 3, 2025 CVE Updated
  • Mar 17, 2026 Security Advisory (9 in total, the first dated here)
  • Jun 15, 2026 Coalition ESS Score
  • Oct 21, 2026 Distribution Patch (8 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-27221
vulnetix vdb fixes CVE-2025-27221

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-27221/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›