Vulnerabilities

CVE-2025-27221

Medium 5.3 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2025-03-04
Last modified
2026-06-17
Assigned by
cve@mitre.org
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.5 % higher than 40 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
uri (RubyGems) < 0.11.3 Affected
uri (RubyGems) ≥ 0.12.0, < 0.12.4 Affected
uri (RubyGems) ≥ 0.13.0, < 0.13.2 Affected
uri (RubyGems) ≥ 1.0.0, < 1.0.3 Affected
Ruby-lang Uri < 0.11.3 Affected
Ruby-lang Uri ≥ 0.12.0, < 0.12.4 Affected
Ruby-lang Uri ≥ 0.13.0, < 0.13.2 Affected
Ruby-lang Uri ≥ 1.0.0, < 1.0.3 Affected

Weakness type

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities