Ad

CVE-2025-27221

MEDIUM CVSS 3.1: 5.3 EPSS 0.17%
Updated Nov 03, 2025
Ruby-Lang
Parameter Value
CVSS 5.3 (MEDIUM)
Affected Versions 0.12.0 — 1.0.3
Fixed In 0.11.3
Type CWE-212
Vendor Ruby-Lang
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
Low
Partial data leak
Integrity
None
No data modification
Availability
None
No disruption

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 4

Configuration From (including) Up to (excluding)
Ruby-Lang Uri
cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:*
0.11.3
Ruby-Lang Uri
cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:*
0.12.0 0.12.4
Ruby-Lang Uri
cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:*
0.13.0 0.13.2
Ruby-Lang Uri
cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:*
1.0.0 1.0.3