URL Normalization Vulnerability in Cargo Affects Rust Programming Language
CVE-2026-5222
2.3LOW
What is CVE-2026-5222?
A URL normalization vulnerability exists in Cargo versions 1.68 to 1.96, where the URLs of third-party registries using the sparse index protocol are incorrectly normalized. If a hosting provider allows the hosting of multiple registries with arbitrary names within the same domain, an attacker who can publish crates in one registry may gain unauthorized access to the credentials of users in the same registry. This scenario requires very specific conditions to be met, making the exploit highly niche.
Affected Version(s)
Cargo 1.68.0 < 1.96.0
