CVE-2026-5222

LOW CVSS 4.0: 2.3 EPSS 0.48%
Updated Jul 23, 2026
Rust-Lang
Parameter Value
CVSS 2.3 (LOW)
Affected Versions 1.68.0 — 1.96.0
Fixed In 1.96.0
Type CWE-647
Vendor Rust-Lang
Public PoC No

Cargo between 1.68 and 1.96 incorrectly normalized the URLs of third-party registries using the sparse index protocol. If a hosting provider allowed multiple registries to be hosted with arbitrary names within the same domain, an attacker able to publish crates in a registry could obtain the credentials of others users of the same registry. The severity of the vulnerability is **low**, due to the extremely niche requirements needed to achieve the attack.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
Present
Additional conditions required
Privileges Required
None
No privileges needed
User Interaction
Passive
Minimal interaction

Impact Assessment

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

CVSS Vector v4.0

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Rust-Lang Cargo
cpe:2.3:a:rust-lang:cargo:*:*:*:*:*:rust:*:*
1.68.0 1.96.0

Related Vulnerabilities