CVE-2026-5222

published 25 May 2026 · updated 16 Nov 2026

Cargo can be coerced to share credentials between registries

2.3LowCVSS 2.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.96.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
rust>=1.68.0 <1.96.01.96.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-5222 severity on Zeptric[![CVE-2026-5222](https://zeptric.io/badge/cve/CVE-2026-5222.svg)](https://zeptric.io/cve/CVE-2026-5222)