Home

Description

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.

PUBLISHED Reserved 2026-03-31 | Published 2026-05-25 | Updated 2026-05-26 | Assigner rust




LOW: 2.3CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N

Problem types

CWE-647 Use of Non-Canonical URL paths for authorization decisions

Product status

Default status
unaffected

1.68.0 (semver) before 1.96.0
affected

References

groups.google.com/...ng-security-announcements/c/SfUxOiIdY5s vendor-advisory mailing-list

blog.rust-lang.org/2026/05/25/cve-2026-5222/ vendor-advisory

github.com/rust-lang/cargo/pull/17031 patch

cve.org (CVE-2026-5222)

nvd.nist.gov (CVE-2026-5222)

Download JSON