{"cve":"CVE-2025-27221","nvd":{"published":"2025-03-04T00:15:31.847","modified":"2026-06-17T09:03:14.380","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3},"cwes":["CWE-212"],"references":["https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml","https://hackerone.com/reports/2957667","https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html","https://lists.debian.org/debian-lts-announce/2025/05/msg00015.html"],"products":["ruby-lang:uri"],"source":"nvd","synced_at":"2026-10-19T21:59:48.811064707+00:00"},"epss":{"cve":"CVE-2025-27221","score":0.00511,"percentile":0.43637,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-22h5-pq3x-2gf2","url":"https://osv.dev/vulnerability/GHSA-22h5-pq3x-2gf2","summary":"URI allows for userinfo Leakage in URI#join, URI#merge, and URI#+","modified":"2026-09-10T03:50:06.344750316Z","packages":[{"ecosystem":"RubyGems","name":"uri","purl":"pkg:gem/uri","ranges":["<0.11.3"],"fixed":["0.11.3"]},{"ecosystem":"RubyGems","name":"uri","purl":"pkg:gem/uri","ranges":[">=0.12.0 <0.12.4"],"fixed":["0.12.4"]},{"ecosystem":"RubyGems","name":"uri","purl":"pkg:gem/uri","ranges":[">=0.13.0 <0.13.2"],"fixed":["0.13.2"]},{"ecosystem":"RubyGems","name":"uri","purl":"pkg:gem/uri","ranges":[">=1.0.0 <1.0.3"],"fixed":["1.0.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}