CVE-2026-5222
CVE-2026-5222 is a low-severity vulnerability in Cargo, the Rust package manager, affecting versions 1.68 through 1.96. The issue stems from incorrect URL normalization when Cargo interacts with third-party registries using the sparse index protocol. Specifically, if a hosting provider allows multiple registries to be hosted with arbitrary names within the same domain, an attacker with the ability to publish crates in one registry could potentially obtain credentials of other users of that same registry. The attack requires extremely niche conditions: a hosting provider must allow arbitrary registry names within a shared domain, and the attacker must have publishing privileges. The vulnerability was disclosed by the Rust Security Response WG on May 25, 2026, with a fix implemented in Cargo pull request 17031. Users should upgrade to Cargo 1.97 or later to remediate this issue.